Skip to content

Commit

Permalink
fix benchmarks task
Browse files Browse the repository at this point in the history
  • Loading branch information
icambron committed Nov 18, 2023
1 parent c71a555 commit 3125686
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions benchmarks/datetime.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Benchmark from "benchmark";
import DateTime from "../src/datetime";
import Settings from "../src/settings";
import DateTime from "../src/datetime.js";
import Settings from "../src/settings.js";

function runDateTimeSuite() {
return new Promise((resolve, reject) => {
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import dateTimeSuites from "./datetime";
import infoSuites from "./info";
import dateTimeSuites from "./datetime.js";
import infoSuites from "./info.js";

const allSuites = [...dateTimeSuites, ...infoSuites];

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/info.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Benchmark from "benchmark";
import Info from "../src/info";
import Info from "../src/info.js";
import Locale from "../src/impl/locale.js";

function runWeekdaysSuite() {
Expand Down
3 changes: 3 additions & 0 deletions benchmarks/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "module"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"site": "npm run api-docs && npm run copy-site",
"format": "prettier --write 'src/**/*.js' 'test/**/*.js' 'benchmarks/*.js'",
"format-check": "prettier --check 'src/**/*.js' 'test/**/*.js' 'benchmarks/*.js'",
"benchmark": "babel-node benchmarks/index.js",
"benchmark": "node benchmarks/index.js",
"codecov": "codecov",
"prepack": "babel-node tasks/buildAll.js",
"prepare": "husky install",
Expand Down

0 comments on commit 3125686

Please sign in to comment.