Skip to content

Commit 1588d5b

Browse files
committed
Switch project tooling from Bun to pnpm
1 parent c6a6c17 commit 1588d5b

14 files changed

Lines changed: 4131 additions & 1214 deletions

File tree

.github/workflows/build-preview.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@ jobs:
1515
fetch-depth: 0
1616
ref: ${{ github.event.pull_request.head.ref }}
1717
repository: ${{ github.event.pull_request.head.repo.full_name }}
18-
- uses: oven-sh/setup-bun@v2
19-
- run: bun install
20-
- run: cd web && bun run build
18+
- uses: pnpm/action-setup@v6
19+
- uses: actions/setup-node@v5
20+
with:
21+
node-version: "24"
22+
cache: "pnpm"
23+
- run: pnpm install
24+
- run: pnpm --filter=web run build
2125
- name: "upload build artifact"
22-
uses: "actions/upload-artifact@v6"
26+
uses: "actions/upload-artifact@v7"
2327
with:
2428
name: "preview-build"
2529
path: |

.github/workflows/deploy.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,25 @@ jobs:
1111
steps:
1212
- name: Checkout Repository
1313
uses: actions/checkout@v6
14-
- name: Setup Bun
15-
uses: oven-sh/setup-bun@v2
14+
- name: Setup pnpm
15+
uses: pnpm/action-setup@v6
16+
- name: Setup Node
17+
uses: actions/setup-node@v5
18+
with:
19+
node-version: "24"
20+
cache: "pnpm"
1621
- name: Install frontend dependencies
17-
run: bun install
22+
run: pnpm install
1823
- name: Build frontend
19-
run: cd web && bun run build
24+
run: pnpm --filter=web run build
2025
env:
21-
GITHUB_CLIENT_SECRET: ${{ secrets.VITE_GITHUB_CLIENT_SECRET }}
26+
GITHUB_CLIENT_SECRET: ${{ secrets.VITE_GITHUB_CLIENT_SECRET }}
2227
- name: "Deploy to Cloudflare Pages"
2328
uses: "AdrianGonz97/refined-cf-pages-action@v1"
2429
with:
25-
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
26-
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
27-
githubToken: ${{ secrets.GITHUB_TOKEN }}
28-
projectName: "diffs"
29-
directory: "web/.svelte-kit/cloudflare"
30-
deploymentName: Production
30+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
31+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
32+
githubToken: ${{ secrets.GITHUB_TOKEN }}
33+
projectName: "diffs"
34+
directory: "web/.svelte-kit/cloudflare"
35+
deploymentName: Production

.github/workflows/test.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ jobs:
1313
steps:
1414
- name: Checkout Repository
1515
uses: actions/checkout@v6
16-
- uses: oven-sh/setup-bun@v2
17-
- run: bun install
18-
- run: cd web && bun run lint
19-
- run: cd web && bun run check
20-
- run: cd web && bun run test
21-
- run: cd web-extension && bun run lint
16+
- uses: pnpm/action-setup@v6
17+
- uses: actions/setup-node@v5
18+
with:
19+
node-version: "24"
20+
cache: "pnpm"
21+
- run: pnpm install
22+
- run: pnpm --filter=web run lint
23+
- run: pnpm --filter=web run check
24+
- run: pnpm --filter=web run test
25+
- run: pnpm --filter=web-extension run lint

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ Web extension that streamlines opening diffs in the viewer.
2121

2222
### Setup
2323

24-
- Install [Bun](https://bun.sh/) and execute `bun install` in `/web` to install the required dependencies for the frontend.
24+
- Install [pnpm](https://pnpm.io/) and execute `pnpm install` to install the required dependencies.
2525
- Install a JVM 21 or newer for the Gradle runtime (prefer a JDK to avoid extra downloads for a compiler).
2626

2727
### Testing
2828

29-
- The frontend can be tested with `bun run dev` in `/web`.
29+
- The frontend can be tested with `pnpm run dev` in `/web`.
3030

3131
### Code Style
3232

33-
- The frontend uses ESLint and Prettier for code style. Run `bun run format` to reformat and `bun run lint` to check style.
33+
- The frontend uses ESLint and Prettier for code style. Run `pnpm run format` to reformat and `pnpm run lint` to check style.

bun.lock

Lines changed: 0 additions & 1145 deletions
This file was deleted.

bunfig.toml

Lines changed: 0 additions & 7 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "diff-viewer",
33
"private": true,
4-
"workspaces": [
5-
"web*"
6-
]
4+
"packageManager": "pnpm@10.33.0",
5+
"engines": {
6+
"node": ">=24.0.0"
7+
}
78
}

0 commit comments

Comments
 (0)