Skip to content

Commit 051d967

Browse files
Merge pull request #395 from TorstenDittmann/migrate-bun
Migrate to Bun workspaces and CI config
2 parents 8c20bd6 + 592b455 commit 051d967

12 files changed

Lines changed: 1492 additions & 5860 deletions

File tree

.github/dependabot.yml

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

.github/workflows/lint.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
10-
- uses: actions/setup-node@v4
10+
- uses: oven-sh/setup-bun@v2
1111
with:
12-
node-version: '22.x'
13-
registry-url: 'https://registry.npmjs.org'
14-
- run: npm install -g --force corepack@latest
15-
- run: corepack enable
16-
- run: pnpm install --frozen-lockfile
17-
- run: pnpm run build
18-
- run: pnpm run lint
12+
bun-version: '1.3.8'
13+
- run: bun install --frozen-lockfile
14+
- run: bun run build
15+
- run: bun run lint

.github/workflows/publish.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
10-
- uses: actions/setup-node@v4
10+
- uses: oven-sh/setup-bun@v2
1111
with:
12-
node-version: '22.x'
13-
registry-url: 'https://registry.npmjs.org'
14-
- run: npm install -g --force corepack@latest
15-
- run: corepack enable
16-
- run: pnpm install --frozen-lockfile
17-
- run: pnpm run build && pnpm publish -r --no-git-checks
12+
bun-version: '1.3.8'
13+
- run: bun install --frozen-lockfile
14+
- run: bun run build
15+
- run: bun publish
16+
working-directory: packages/process
1817
env:
1918
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/test.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@ jobs:
77
strategy:
88
matrix:
99
os: [ubuntu-latest, windows-latest, macos-latest]
10-
node-version: [22.x, 23.x]
10+
node-version: [22.x, 23.x, 24.x, 25.x]
1111
runs-on: ${{ matrix.os }}
1212
steps:
1313
- uses: actions/checkout@v4
1414
- name: Use Node.js ${{ matrix.node-version }}
1515
uses: actions/setup-node@v4
1616
with:
1717
node-version: ${{ matrix.node-version }}
18-
- run: npm install -g --force corepack@latest
19-
- run: corepack enable
20-
- run: pnpm install --frozen-lockfile
21-
- run: pnpm run build
22-
- run: pnpm run test
18+
- uses: oven-sh/setup-bun@v2
19+
with:
20+
bun-version: '1.3.8'
21+
- run: bun install --frozen-lockfile
22+
- run: bun run build
23+
- run: bun run test

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ node_modules
2626

2727
# vercel
2828
.vercel
29+
30+
# Workspace utils cache
31+
.wsu/

apps/demo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ npx sv create my-app
1616

1717
## Developing
1818

19-
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
19+
Once you've created a project and installed dependencies with `bun install` (or `npm install` or `yarn`), start a development server:
2020

2121
```bash
2222
npm run dev

apps/demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"format": "prettier --write .",
1414
"lint": "prettier --check . && eslint .",
1515
"test:e2e": "playwright install --with-deps && playwright test",
16-
"test": "npm run test:e2e"
16+
"test": "bun run test:e2e"
1717
},
1818
"devDependencies": {
1919
"@eslint/compat": "^1.2.7",

apps/documentation/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ logs
44
npm-debug.log*
55
yarn-debug.log*
66
yarn-error.log*
7-
pnpm-debug.log*
7+
bun-debug.log*
88
lerna-debug.log*
99

1010
node_modules

bun.lock

Lines changed: 1450 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
{
2+
"workspaces": [
3+
"apps/*",
4+
"packages/*"
5+
],
26
"private": true,
37
"scripts": {
4-
"build": "pnpm run -r build",
5-
"dev": "pnpm run -r --parallel --stream dev",
6-
"test": "pnpm run -r test",
7-
"check": "pnpm run -r check",
8-
"lint": "pnpm run -r lint",
9-
"format": "pnpm run -r format"
8+
"build": "wsu build",
9+
"dev": "wsu dev",
10+
"test": "wsu run test",
11+
"check": "wsu run check",
12+
"lint": "wsu run lint",
13+
"format": "wsu run format"
1014
},
11-
"packageManager": "pnpm@10.6.5+sha512.cdf928fca20832cd59ec53826492b7dc25dc524d4370b6b4adbf65803d32efaa6c1c88147c0ae4e8d579a6c9eec715757b50d4fa35eea179d868eada4ed043af",
12-
"pnpm": {
13-
"onlyBuiltDependencies": [
14-
"esbuild"
15-
]
15+
"packageManager": "bun@1.3.8",
16+
"trustedDependencies": [
17+
"@sveltejs/kit",
18+
"esbuild",
19+
"svelte-preprocess"
20+
],
21+
"devDependencies": {
22+
"workspace-utils": "^2.0.3"
1623
}
1724
}

0 commit comments

Comments
 (0)