Skip to content

Commit a7b8dda

Browse files
chore: use tsx and remove esbuild-register
1 parent d5e8d24 commit a7b8dda

File tree

5 files changed

+44
-267
lines changed

5 files changed

+44
-267
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
needs: list-examples
4545
strategy:
4646
matrix:
47-
node-version: ["18", "20.5.1"]
47+
node-version: ["18", "20", "24"]
4848
example: ${{ fromJson(needs.list-examples.outputs.examples) }}
4949
fail-fast: false
5050
steps:

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
"@types/node": "^24.3.0",
1414
"@typescript-eslint/eslint-plugin": "^5.58.0",
1515
"@typescript-eslint/parser": "^5.58.0",
16-
"esbuild": "^0.17.16",
17-
"esbuild-register": "^3.4.2",
1816
"eslint": "^7.32.0",
1917
"eslint-import-resolver-typescript": "^3.5.5",
2018
"eslint-plugin-import": "^2.27.5",
@@ -29,6 +27,7 @@
2927
"rollup-plugin-esbuild": "^6.1.0",
3028
"ts-jest": "^29.1.0",
3129
"tslib": "^2.5.0",
30+
"tsx": "^4.20.5",
3231
"typescript": "4.9.4"
3332
},
3433
"packageManager": "pnpm@10.15.0",

packages/tinybench-plugin/moon.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
tasks:
22
bench:
3-
command: node --loader esbuild-register/loader -r esbuild-register benches/sample.ts
3+
command: tsx benches/sample.ts
44
inputs:
55
- "benches/**"
66
local: true

packages/tinybench-plugin/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"license": "Apache-2.0",
2727
"devDependencies": {
2828
"@types/stack-trace": "^0.0.30",
29-
"esbuild-register": "^3.4.2",
3029
"tinybench": "^4.0.1",
3130
"vitest": "^3.2.4"
3231
},

0 commit comments

Comments
 (0)