Skip to content

Commit e9b0824

Browse files
committed
chore: use bun as the package manager
1 parent d4c8497 commit e9b0824

File tree

7 files changed

+1176
-4560
lines changed

7 files changed

+1176
-4560
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
55

66
version: 2
7+
enable-beta-ecosystems: true
78
updates:
89
- package-ecosystem: "github-actions"
910
directory: "/"

.github/workflows/main.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,28 @@ jobs:
1414
- name: Checkout repository
1515
uses: actions/checkout@v4
1616

17-
- name: Setup pnpm
18-
uses: pnpm/action-setup@v4
19-
with:
20-
version: 10
17+
- name: Setup bun
18+
uses: oven-sh/setup-bun@v2
2119

2220
- name: Setup Node
2321
uses: actions/setup-node@v4
2422
with:
2523
node-version: lts/*
26-
cache: "pnpm"
27-
28-
- name: Setup bun
29-
uses: oven-sh/setup-bun@v2
3024

3125
- name: Install dependencies
32-
run: pnpm install --frozen-lockfile
26+
run: bun install --frozen-lockfile
3327

3428
- name: Lint
35-
run: pnpm lint
29+
run: bun run lint
3630

3731
- name: Test
38-
run: pnpm test:ci
32+
run: bun run test:ci
3933

4034
- name: Build
41-
run: pnpm build
35+
run: bun run build
4236

4337
- name: Are the types wrong
44-
run: pnpm attw
38+
run: bun run attw
4539

4640
- name: CodeCov
4741
uses: codecov/[email protected]

.github/workflows/not-main.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,28 @@ jobs:
1212
- name: Checkout repository
1313
uses: actions/checkout@v4
1414

15-
- name: Setup pnpm
16-
uses: pnpm/action-setup@v4
17-
with:
18-
version: 10
15+
- name: Setup bun
16+
uses: oven-sh/setup-bun@v2
1917

2018
- name: Setup Node
2119
uses: actions/setup-node@v4
2220
with:
2321
node-version: lts/*
24-
cache: "pnpm"
25-
26-
- name: Setup bun
27-
uses: oven-sh/setup-bun@v2
2822

2923
- name: Install dependencies
30-
run: pnpm install --frozen-lockfile
24+
run: bun install --frozen-lockfile
3125

3226
- name: Lint
33-
run: pnpm lint
27+
run: bun run lint
3428

3529
- name: Test
36-
run: pnpm test:ci
30+
run: bun run test:ci
3731

3832
- name: Build
39-
run: pnpm build
33+
run: bun run build
4034

4135
- name: Are the types wrong
42-
run: pnpm attw
36+
run: bun run attw
4337

4438
- name: CodeCov
4539
uses: codecov/[email protected]

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
node_modules
33
coverage
44
dist
5-
pnpm-lock.yaml
5+
bun.lock

bun.lock

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"test:update": "bun --revision && vitest run src test/declarations test/packages --update",
5555
"lint": "prettier --check .",
5656
"format": "prettier --write .",
57-
"pre-push": "bun --revision && pnpm i && pnpm lint && pnpm build && pnpm test:ci",
57+
"pre-push": "bun --revision && bun i && bun run lint && bun run build && bun run test:ci && bun run attw",
5858
"release": "np"
5959
},
6060
"dependencies": {

0 commit comments

Comments
 (0)