diff --git a/benchmarks/datetime.js b/benchmarks/datetime.js index 0362f8ee9..39d6bf07c 100644 --- a/benchmarks/datetime.js +++ b/benchmarks/datetime.js @@ -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) => { diff --git a/benchmarks/index.js b/benchmarks/index.js index db58cb32c..a2d3daf47 100644 --- a/benchmarks/index.js +++ b/benchmarks/index.js @@ -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]; diff --git a/benchmarks/info.js b/benchmarks/info.js index 7efa9b3e7..f358f66a9 100644 --- a/benchmarks/info.js +++ b/benchmarks/info.js @@ -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() { diff --git a/benchmarks/package.json b/benchmarks/package.json new file mode 100644 index 000000000..3dbc1ca59 --- /dev/null +++ b/benchmarks/package.json @@ -0,0 +1,3 @@ +{ + "type": "module" +} diff --git a/package.json b/package.json index aa3f831fb..7f97f3dd5 100644 --- a/package.json +++ b/package.json @@ -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",