Skip to content

Commit 7b6edb7

Browse files
techsavvyashclaude
andcommitted
chore: switch from bun to npm with Node 20/22/24 support
- Remove bun.lock and add package-lock.json - Update GitHub Actions CI to test on Node 20, 22, and 24 - Update all package.json engine requirements to node >=20 - Change workspace dependency from workspace:* to * for npm compatibility 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 38f1946 commit 7b6edb7

7 files changed

Lines changed: 3210 additions & 539 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,24 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
node-version: [18, 20, 22]
16+
node-version: [20, 22, 24]
1717

1818
steps:
1919
- uses: actions/checkout@v4
2020

21-
- name: Setup Bun
22-
uses: oven-sh/setup-bun@v2
23-
with:
24-
bun-version: latest
25-
2621
- name: Setup Node.js ${{ matrix.node-version }}
2722
uses: actions/setup-node@v4
2823
with:
2924
node-version: ${{ matrix.node-version }}
3025

3126
- name: Install dependencies
32-
run: bun install
27+
run: npm install
3328

3429
- name: Typecheck core
35-
run: bun run --filter @termwright/core typecheck
30+
run: npm run typecheck --workspace=@termwright/core
3631

3732
- name: Test core
38-
run: bun run --filter @termwright/core test
33+
run: npm run test --workspace=@termwright/core
3934

4035
test-mcp-server:
4136
name: Test @termwright/mcp-server
@@ -45,24 +40,19 @@ jobs:
4540
steps:
4641
- uses: actions/checkout@v4
4742

48-
- name: Setup Bun
49-
uses: oven-sh/setup-bun@v2
50-
with:
51-
bun-version: latest
52-
5343
- name: Setup Node.js
5444
uses: actions/setup-node@v4
5545
with:
56-
node-version: 20
46+
node-version: 22
5747

5848
- name: Install dependencies
59-
run: bun install
49+
run: npm install
6050

6151
- name: Build core first (for types)
62-
run: bun run --filter @termwright/core build
52+
run: npm run build --workspace=@termwright/core
6353

6454
- name: Typecheck mcp-server
65-
run: bun run --filter @termwright/mcp-server typecheck
55+
run: npm run typecheck --workspace=@termwright/mcp-server
6656

6757
build:
6858
name: Build all packages
@@ -72,21 +62,16 @@ jobs:
7262
steps:
7363
- uses: actions/checkout@v4
7464

75-
- name: Setup Bun
76-
uses: oven-sh/setup-bun@v2
77-
with:
78-
bun-version: latest
79-
8065
- name: Setup Node.js
8166
uses: actions/setup-node@v4
8267
with:
83-
node-version: 20
68+
node-version: 22
8469

8570
- name: Install dependencies
86-
run: bun install
71+
run: npm install
8772

8873
- name: Build all packages
89-
run: bun run build
74+
run: npm run build
9075

9176
- name: Verify core build artifacts
9277
run: |

.github/workflows/release.yml

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,19 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212

13-
- name: Setup Bun
14-
uses: oven-sh/setup-bun@v2
15-
with:
16-
bun-version: latest
17-
1813
- name: Setup Node.js
1914
uses: actions/setup-node@v4
2015
with:
21-
node-version: 20
16+
node-version: 22
2217

2318
- name: Install dependencies
24-
run: bun install
19+
run: npm install
2520

2621
- name: Typecheck all
27-
run: bun run typecheck
22+
run: npm run typecheck
2823

2924
- name: Test all
30-
run: bun run test
25+
run: npm run test
3126

3227
publish-core:
3328
name: Publish @termwright/core
@@ -40,22 +35,17 @@ jobs:
4035
steps:
4136
- uses: actions/checkout@v4
4237

43-
- name: Setup Bun
44-
uses: oven-sh/setup-bun@v2
45-
with:
46-
bun-version: latest
47-
4838
- name: Setup Node.js
4939
uses: actions/setup-node@v4
5040
with:
51-
node-version: 20
41+
node-version: 22
5242
registry-url: "https://registry.npmjs.org"
5343

5444
- name: Install dependencies
55-
run: bun install
45+
run: npm install
5646

5747
- name: Build core
58-
run: bun run --filter @termwright/core build
48+
run: npm run build --workspace=@termwright/core
5949

6050
- name: Publish @termwright/core to npm
6151
run: npm publish --provenance --access public
@@ -74,22 +64,17 @@ jobs:
7464
steps:
7565
- uses: actions/checkout@v4
7666

77-
- name: Setup Bun
78-
uses: oven-sh/setup-bun@v2
79-
with:
80-
bun-version: latest
81-
8267
- name: Setup Node.js
8368
uses: actions/setup-node@v4
8469
with:
85-
node-version: 20
70+
node-version: 22
8671
registry-url: "https://registry.npmjs.org"
8772

8873
- name: Install dependencies
89-
run: bun install
74+
run: npm install
9075

9176
- name: Build all packages
92-
run: bun run build
77+
run: npm run build
9378

9479
- name: Publish @termwright/mcp-server to npm
9580
run: npm publish --provenance --access public

0 commit comments

Comments
 (0)