Skip to content

Commit 1d53fd4

Browse files
authored
Merge pull request #533 from dev-five-git/migration-bun
Migration bun
2 parents 84f6776 + 2170c51 commit 1d53fd4

159 files changed

Lines changed: 13366 additions & 22983 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"changes":{"packages/bun-plugin/package.json":"Major"},"note":"Release major","date":"2026-01-04T10:36:16.984388500Z"}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"changes":{"packages/components/package.json":"Patch","packages/rsbuild-plugin/package.json":"Patch","bindings/devup-ui-wasm/package.json":"Patch","packages/react/package.json":"Patch","packages/eslint-plugin/package.json":"Patch","packages/bun-plugin/package.json":"Major","packages/reset-css/package.json":"Patch","packages/vite-plugin/package.json":"Patch","packages/webpack-plugin/package.json":"Patch","packages/next-plugin/package.json":"Patch"},"note":"Refactor code","date":"2026-01-04T10:36:03.702621400Z"}

.changepacks/config.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"ignore": ["*", "!packages/*/*", "!bindings/*/package.json"],
33
"baseBranch": "main",
4-
"latestPackage": null,
5-
"publish": {
6-
"node": "pnpm publish --no-git-checks"
7-
}
4+
"latestPackage": null
85
}

.github/workflows/publish.yml

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@ jobs:
2525
run: |
2626
cargo install cargo-tarpaulin
2727
rustup component add rustfmt clippy
28-
- uses: pnpm/action-setup@v4
29-
name: Install pnpm
30-
with:
31-
run_install: false
28+
- uses: oven-sh/setup-bun@v2
29+
name: Install bun
3230

3331
- uses: jetli/wasm-pack-action@v0.4.0
3432
with:
@@ -38,11 +36,10 @@ jobs:
3836
with:
3937
registry-url: "https://registry.npmjs.org"
4038
node-version: 22
41-
cache: 'pnpm'
42-
- run: pnpm i
43-
- run: pnpm build
39+
- run: bun install
40+
- run: bun run build
4441
- name: Benchmark
45-
run: pnpm benchmark
42+
run: bun run benchmark
4643

4744
publish:
4845
runs-on: ubuntu-latest
@@ -55,10 +52,8 @@ jobs:
5552
run: |
5653
cargo install cargo-tarpaulin
5754
rustup component add rustfmt clippy
58-
- uses: pnpm/action-setup@v4
59-
name: Install pnpm
60-
with:
61-
run_install: false
55+
- uses: oven-sh/setup-bun@v2
56+
name: Install bun
6257

6358
- uses: jetli/wasm-pack-action@v0.4.0
6459
with:
@@ -68,13 +63,12 @@ jobs:
6863
with:
6964
registry-url: "https://registry.npmjs.org"
7065
node-version: 22
71-
cache: 'pnpm'
7266
env:
7367
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
74-
- run: pnpm i
75-
- run: pnpm build
68+
- run: bun install
69+
- run: bun run build
7670
- run: |
77-
pnpm lint
71+
bun run lint
7872
# rust coverage issue
7973
echo 'max_width = 100000' > .rustfmt.toml
8074
echo 'tab_spaces = 4' >> .rustfmt.toml
@@ -85,16 +79,16 @@ jobs:
8579
echo 'merge_derives = true' >> .rustfmt.toml
8680
echo 'use_small_heuristics = "Default"' >> .rustfmt.toml
8781
cargo fmt
88-
- run: pnpm test
82+
- run: bun run test
8983
- name: Format Rollback
9084
run: |
9185
rm -rf .rustfmt.toml
9286
cargo fmt
9387
- name: Build Landing
9488
run: |
95-
pnpm -F components build-storybook
89+
bun run --filter @devup-ui/components build-storybook
9690
mv ./packages/components/storybook-static ./apps/landing/public/storybook
97-
pnpm -F landing build
91+
bun run --filter landing build
9892
- name: Upload artifact
9993
uses: actions/upload-pages-artifact@v3
10094
with:
@@ -107,10 +101,11 @@ jobs:
107101
with:
108102
token: ${{ secrets.CODECOV_TOKEN }}
109103
fail_ci_if_error: true
104+
files: ./coverage/lcov.info
110105

111106
- uses: changepacks/action@main
112107
id: changepacks
113108
with:
114109
publish: true
115110
env:
116-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
111+
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}

.husky/pre-commit

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
pnpm lint-staged
1+
bun lint
2+
bun run test

.lintstagedrc.mjs

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

0 commit comments

Comments
 (0)