Skip to content

Commit aaa7067

Browse files
committed
Fix benchmarks for ESM
1 parent 050a975 commit aaa7067

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

benchmarks/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import sql, { Sql } from "../src/index";
1+
import sql, { Sql } from "../src/index.js";
22
import bytes from "bytes";
33

44
const before = process.memoryUsage();

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"node": ">=12"
2626
},
2727
"scripts": {
28-
"benchmark": "ts-node benchmarks/index.ts",
28+
"benchmark": "node --loader=ts-node/esm benchmarks/index.ts",
2929
"format": "ts-scripts format",
3030
"lint": "ts-scripts lint",
3131
"prepare": "ts-scripts install && ts-scripts build",

0 commit comments

Comments
 (0)