Skip to content

Commit 04087b0

Browse files
authored
Merge pull request #29 from dev-five-git/migration
Migration
2 parents 3cc3d66 + 8e73ee2 commit 04087b0

File tree

31 files changed

+2606
-24731
lines changed

31 files changed

+2606
-24731
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"changes":{"package.json":"Patch"},"note":"Migration to bun","date":"2025-12-30T17:52:49.858589700Z"}

.changepacks/config.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"ignore": [],
3+
"baseBranch": "main",
4+
"latestPackage": "package.json",
5+
"publish": {},
6+
"updateOn": {}
7+
}

.changeset/README.md

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

.changeset/config.json

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

.changeset/lemon-hands-slide.md

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

.github/workflows/check-pr.yml

Lines changed: 21 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,21 @@
1-
name: Check Pull Request
2-
on:
3-
pull_request:
4-
branches:
5-
- main
6-
jobs:
7-
check:
8-
concurrency:
9-
group: ${{ github.workflow }}-${{ github.ref }}
10-
cancel-in-progress: true
11-
runs-on: ubuntu-latest
12-
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v4
15-
- uses: pnpm/action-setup@v4
16-
name: Install pnpm
17-
- name: Install Node.js
18-
uses: actions/setup-node@v4
19-
with:
20-
node-version: 22
21-
cache: 'pnpm'
22-
registry-url: 'https://registry.npmjs.org'
23-
24-
- run: pnpm i
25-
- run: |
26-
pnpm build
27-
pnpm lint
28-
pnpm test
1+
name: Check Pull Request
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
jobs:
7+
check:
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- uses: oven-sh/setup-bun@v2
16+
- run: bun i
17+
- run: |
18+
bun test
19+
bun run build
20+
# eslint project can not lint before build
21+
bun lint

.github/workflows/publish.yml

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
name: Publish Package to npm
2-
3-
on:
4-
push:
5-
branches:
6-
- main
7-
8-
jobs:
9-
publish:
10-
runs-on: ubuntu-latest
11-
concurrency:
12-
group: ${{ github.workflow }}-${{ github.ref }}
13-
cancel-in-progress: false
14-
steps:
15-
- name: Checkout
16-
uses: actions/checkout@v4
17-
- uses: pnpm/action-setup@v4
18-
name: Install pnpm
19-
- name: Install Node.js
20-
uses: actions/setup-node@v4
21-
with:
22-
registry-url: "https://registry.npmjs.org"
23-
node-version: 22
24-
cache: 'pnpm'
25-
- run: pnpm i
26-
- run: |
27-
pnpm build
28-
pnpm lint
29-
pnpm test
30-
- name: Create Release Pull Request or Publish to npm
31-
id: changesets
32-
uses: changesets/action@v1
33-
with:
34-
publish: pnpm publish --access=public
35-
env:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1+
name: Publish Package to npm
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: false
14+
permissions:
15+
# create pull request comments
16+
pull-requests: write
17+
18+
# Actions > General > Workflow permissions for creating pull request
19+
# Create brench to create pull request
20+
contents: write
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
- uses: oven-sh/setup-bun@v2
25+
- run: bun i
26+
- run: |
27+
bun test
28+
bun run build
29+
# eslint project can not lint before build
30+
bun lint
31+
- uses: changepacks/action@main
32+
id: changepacks
33+
with:
34+
publish: true
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 59 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,59 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
3-
# Dependencies
4-
node_modules
5-
.pnp
6-
.pnp.js
7-
.idea
8-
.vscode
9-
.vite-inspect
10-
.df
11-
12-
devup-*.tgz
13-
# Local env files
14-
.env
15-
.env.local
16-
.env.development.local
17-
.env.test.local
18-
.env.production.local
19-
20-
# Testing
21-
coverage
22-
tsconfig.vitest-temp.json
23-
vite.config.ts.timestamp-*
24-
vite.config.*.ts.timestamp-*
25-
26-
# Turbo
27-
.turbo
28-
29-
# Vercel
30-
.vercel
31-
32-
# Build Outputs
33-
.next
34-
out
35-
build
36-
storybook-static
37-
!packages/*/src/**/build
38-
dist
39-
next-env.d.ts
40-
41-
42-
# Debug
43-
npm-debug.log*
44-
yarn-debug.log*
45-
yarn-error.log*
46-
47-
# Misc
48-
.DS_Store
49-
*.pem
50-
51-
stats.html
52-
53-
*storybook.log
54-
55-
.nx/cache
56-
.nx/workspace-data
57-
**/vite.config.{js,ts,mjs,mts,cjs,cts}.timestamp*
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# Dependencies
4+
node_modules
5+
.pnp
6+
.pnp.js
7+
.idea
8+
.vscode
9+
.vite-inspect
10+
.df
11+
12+
devup-*.tgz
13+
# Local env files
14+
.env
15+
.env.local
16+
.env.development.local
17+
.env.test.local
18+
.env.production.local
19+
20+
# Testing
21+
coverage
22+
tsconfig.vitest-temp.json
23+
vite.config.ts.timestamp-*
24+
vite.config.*.ts.timestamp-*
25+
26+
# Turbo
27+
.turbo
28+
29+
# Vercel
30+
.vercel
31+
32+
# Build Outputs
33+
.next
34+
out
35+
build
36+
storybook-static
37+
!packages/*/src/**/build
38+
dist
39+
next-env.d.ts
40+
41+
42+
# Debug
43+
npm-debug.log*
44+
yarn-debug.log*
45+
yarn-error.log*
46+
47+
# Misc
48+
.DS_Store
49+
*.pem
50+
51+
stats.html
52+
53+
*storybook.log
54+
55+
.nx/cache
56+
.nx/workspace-data
57+
**/vite.config.{js,ts,mjs,mts,cjs,cts}.timestamp*
58+
59+
.claude

.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 test
2+
bun lint

.lintstagedrc.mjs

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

0 commit comments

Comments
 (0)