Skip to content

Commit 5e704be

Browse files
committed
Use tsx first
1 parent ac95cfc commit 5e704be

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/ci-bun.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
- pull_request
55
jobs:
66
test:
7+
env:
8+
BIN_EXEC: bun
79
name: Bun.js
810
runs-on: ubuntu-latest
911
steps:

.github/workflows/ci-node.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
- pull_request
55
jobs:
66
test:
7-
env:
8-
BIN_EXEC: tsx
97
name: Node.js ${{ matrix.node-version }}
108
runs-on: ubuntu-latest
119
strategy:

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131
"node": "^14.13.1 || >=16.0.0"
3232
},
3333
"scripts": {
34-
"build": "${BIN_EXEC:=bun} src/bin.ts build",
35-
"check": "${BIN_EXEC:=bun} src/bin.ts check",
36-
"format": "${BIN_EXEC:=bun} src/bin.ts format",
37-
"prepare": "${BIN_EXEC:=bun} src/bin.ts install",
34+
"build": "${BIN_EXEC:=tsx} src/bin.ts build",
35+
"check": "${BIN_EXEC:=tsx} src/bin.ts check",
36+
"format": "${BIN_EXEC:=tsx} src/bin.ts format",
37+
"prepare": "${BIN_EXEC:=tsx} src/bin.ts install",
3838
"prepublishOnly": "npm run build",
39-
"specs": "${BIN_EXEC:=bun} src/bin.ts specs",
40-
"test": "${BIN_EXEC:=bun} src/bin.ts test"
39+
"specs": "${BIN_EXEC:=tsx} src/bin.ts specs",
40+
"test": "${BIN_EXEC:=tsx} src/bin.ts test"
4141
},
4242
"files": [
4343
"configs/",

0 commit comments

Comments
 (0)