File tree Expand file tree Collapse file tree 7 files changed +26
-38
lines changed
with-typescript-simple-cjs
with-typescript-simple-esm
packages/benchmark.js-plugin Expand file tree Collapse file tree 7 files changed +26
-38
lines changed Original file line number Diff line number Diff line change 4444 needs : list-examples
4545 strategy :
4646 matrix :
47- node-version : ["18 ", "20 ", "24"]
47+ node-version : ["20 ", "22 ", "24"]
4848 example : ${{ fromJson(needs.list-examples.outputs.examples) }}
4949 fail-fast : false
5050 steps :
Original file line number Diff line number Diff line change 22 "name" : " with-typescript-cjs" ,
33 "private" : true ,
44 "scripts" : {
5- "bench-benchmark-js" : " node -r esbuild-register bench/benchmark.js/index.bench.ts" ,
6- "bench-tinybench" : " node -r esbuild-register bench/tinybench/index.bench.ts"
5+ "bench-benchmark-js" : " tsx bench/benchmark.js/index.bench.ts" ,
6+ "bench-tinybench" : " tsx bench/tinybench/index.bench.ts"
77 },
88 "devDependencies" : {
99 "@codspeed/benchmark.js-plugin" : " workspace:*" ,
1010 "@codspeed/tinybench-plugin" : " workspace:*" ,
1111 "@types/benchmark" : " ^2.1.2" ,
1212 "benchmark" : " ^2.1.4" ,
13- "esbuild-register" : " ^3.4.2" ,
1413 "tinybench" : " ^4.0.1" ,
14+ "tsx" : " ^4.20.5" ,
1515 "typescript" : " ^5.1.3"
1616 }
1717}
Original file line number Diff line number Diff line change 33 "private" : true ,
44 "type" : " module" ,
55 "scripts" : {
6- "bench-benchmark-js" : " node --loader esbuild-register/loader -r esbuild-register bench/benchmark.js/index.bench.ts" ,
7- "bench-tinybench" : " node --loader esbuild-register/loader -r esbuild-register bench/tinybench/index.bench.ts" ,
6+ "bench-benchmark-js" : " tsx bench/benchmark.js/index.bench.ts" ,
7+ "bench-tinybench" : " tsx bench/tinybench/index.bench.ts" ,
88 "bench-vitest" : " vitest bench --run"
99 },
1010 "devDependencies" : {
1313 "@codspeed/vitest-plugin" : " workspace:*" ,
1414 "@types/benchmark" : " ^2.1.2" ,
1515 "benchmark" : " ^2.1.4" ,
16- "esbuild-register" : " ^3.4.2" ,
1716 "tinybench" : " ^4.0.1" ,
1817 "typescript" : " ^5.1.3" ,
18+ "tsx" : " ^4.20.5" ,
1919 "vitest" : " ^3.2.4"
2020 }
2121}
Original file line number Diff line number Diff line change 22 "name" : " with-typescript-simple-cjs" ,
33 "private" : true ,
44 "scripts" : {
5- "bench-benchmark-js" : " node -r esbuild-register benchmark-js.ts" ,
6- "bench-tinybench" : " node -r esbuild-register tinybench.ts"
5+ "bench-benchmark-js" : " tsx benchmark-js.ts" ,
6+ "bench-tinybench" : " tsx tinybench.ts"
77 },
88 "devDependencies" : {
99 "@codspeed/benchmark.js-plugin" : " workspace:*" ,
1010 "@codspeed/tinybench-plugin" : " workspace:*" ,
1111 "@types/benchmark" : " ^2.1.2" ,
1212 "benchmark" : " ^2.1.4" ,
13- "esbuild-register" : " ^3.4.2" ,
1413 "tinybench" : " ^4.0.1" ,
14+ "tsx" : " ^4.20.5" ,
1515 "typescript" : " ^5.1.3"
1616 }
1717}
Original file line number Diff line number Diff line change 33 "private" : true ,
44 "type" : " module" ,
55 "scripts" : {
6- "bench-benchmark-js" : " node --loader esbuild-register/loader -r esbuild-register benchmark-js.ts" ,
7- "bench-tinybench" : " node --loader esbuild-register/loader -r esbuild-register tinybench.ts"
6+ "bench-benchmark-js" : " tsx benchmark-js.ts" ,
7+ "bench-tinybench" : " tsx tinybench.ts"
88 },
99 "devDependencies" : {
1010 "@codspeed/benchmark.js-plugin" : " workspace:*" ,
1111 "@codspeed/tinybench-plugin" : " workspace:*" ,
1212 "@types/benchmark" : " ^2.1.2" ,
1313 "benchmark" : " ^2.1.4" ,
14- "esbuild-register" : " ^3.4.2" ,
1514 "tinybench" : " ^4.0.1" ,
15+ "tsx" : " ^4.20.5" ,
1616 "typescript" : " ^5.1.3"
1717 }
1818}
Original file line number Diff line number Diff line change 11tasks :
22 bench :
3- command : node -r esbuild-register benches/sample.ts
3+ command : tsx benches/sample.ts
44 inputs :
55 - " benches/**"
66 local : true
You can’t perform that action at this time.
0 commit comments