Skip to content

Commit 172f367

Browse files
authored
chore: use Bun as package manager (#63)
* chore: use Bun as package manager * create `packages/hono-react-router-adapter`
1 parent 547085e commit 172f367

File tree

20 files changed

+2616
-15748
lines changed

20 files changed

+2616
-15748
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
defaults:
1313
run:
14-
working-directory: ./
14+
working-directory: ./packages/hono-react-router-adapter
1515
strategy:
1616
matrix:
1717
node: [20, 22]
@@ -20,17 +20,20 @@ jobs:
2020
- uses: actions/setup-node@v4
2121
with:
2222
node-version: ${{ matrix.node }}
23-
- run: npm install
24-
- run: npx playwright install --with-deps
25-
- run: npm run build
26-
- run: npm run test:e2e:vite
23+
- uses: oven-sh/setup-bun@v2
24+
with:
25+
bun-version: '1.2.5'
26+
- run: bun install
27+
- run: bunx playwright install --with-deps
28+
- run: bun run build
29+
- run: bun run test:e2e:vite
2730

2831
cloudflare-pages:
2932
name: 'Cloudflare Pages'
3033
runs-on: ubuntu-latest
3134
defaults:
3235
run:
33-
working-directory: ./
36+
working-directory: ./packages/hono-react-router-adapter
3437
strategy:
3538
matrix:
3639
node: [20, 22]
@@ -39,17 +42,20 @@ jobs:
3942
- uses: actions/setup-node@v4
4043
with:
4144
node-version: ${{ matrix.node }}
42-
- run: npm install
43-
- run: npx playwright install --with-deps
44-
- run: npm run build
45-
- run: npm run test:e2e:cloudflare-pages
45+
- uses: oven-sh/setup-bun@v2
46+
with:
47+
bun-version: '1.2.5'
48+
- run: bun install
49+
- run: bunx playwright install --with-deps
50+
- run: bun run build
51+
- run: bun run test:e2e:cloudflare-pages
4652

4753
cloudflare-workers:
4854
name: 'Cloudflare Workers'
4955
runs-on: ubuntu-latest
5056
defaults:
5157
run:
52-
working-directory: ./
58+
working-directory: ./packages/hono-react-router-adapter
5359
strategy:
5460
matrix:
5561
node: [20, 22]
@@ -58,17 +64,20 @@ jobs:
5864
- uses: actions/setup-node@v4
5965
with:
6066
node-version: ${{ matrix.node }}
61-
- run: npm install
62-
- run: npx playwright install --with-deps
63-
- run: npm run build
64-
- run: npm run test:e2e:cloudflare-workers
67+
- uses: oven-sh/setup-bun@v2
68+
with:
69+
bun-version: '1.2.5'
70+
- run: bun install
71+
- run: bunx playwright install --with-deps
72+
- run: bun run build
73+
- run: bun run test:e2e:cloudflare-workers
6574

6675
node:
6776
name: 'Node.js'
6877
runs-on: ubuntu-latest
6978
defaults:
7079
run:
71-
working-directory: ./
80+
working-directory: ./packages/hono-react-router-adapter
7281
strategy:
7382
matrix:
7483
node: [20, 22]
@@ -77,7 +86,10 @@ jobs:
7786
- uses: actions/setup-node@v4
7887
with:
7988
node-version: ${{ matrix.node }}
80-
- run: npm install
81-
- run: npx playwright install --with-deps
82-
- run: npm run build
83-
- run: npm run test:e2e:node
89+
- uses: oven-sh/setup-bun@v2
90+
with:
91+
bun-version: '1.2.5'
92+
- run: bun install
93+
- run: bunx playwright install --with-deps
94+
- run: bun run build
95+
- run: bun run test:e2e:node

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ node_modules
44
*.tgz
55
dist
66
.DS_Store
7+
package-lock.json

bun.lock

Lines changed: 2495 additions & 0 deletions
Large diffs are not rendered by default.

examples/cloudflare-pages/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@react-router/cloudflare": "^7.0.1",
1919
"@react-router/fs-routes": "^7.0.1",
2020
"hono": "^4.5.11",
21+
"hono-react-router-adapter": "workspace:*",
2122
"isbot": "^4.1.0",
2223
"react": "^18.3.1",
2324
"react-dom": "^18.3.1",

examples/cloudflare-workers/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@react-router/cloudflare": "^7.0.1",
1919
"@react-router/fs-routes": "^7.0.1",
2020
"hono": "^4.6.9",
21+
"hono-react-router-adapter": "workspace:*",
2122
"isbot": "^4.1.0",
2223
"react": "^18.2.0",
2324
"react-dom": "^18.2.0",

examples/node/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"@react-router/node": "^7.0.1",
2020
"@react-router/serve": "^7.0.0",
2121
"hono": "^4.6.11",
22+
"hono-react-router-adapter": "workspace:*",
2223
"isbot": "^4.1.0",
2324
"react": "^18.2.0",
2425
"react-dom": "^18.2.0",
@@ -39,4 +40,4 @@
3940
"engines": {
4041
"node": ">=20.0.0"
4142
}
42-
}
43+
}

0 commit comments

Comments
 (0)