Skip to content

Commit 67d9b6d

Browse files
committed
chore: use bun as package manager
1 parent f9e9070 commit 67d9b6d

File tree

8 files changed

+1767
-8115
lines changed

8 files changed

+1767
-8115
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
@@ -7,40 +7,34 @@ on:
77

88
jobs:
99
# See https://stackoverflow.com/a/73624365/16109047
10-
build-and-deploy:
10+
build:
1111
runs-on: ubuntu-latest
1212
if: github.repository == 'jsdocs-io/web' && github.ref == 'refs/heads/main'
1313
steps:
1414
- name: Checkout repository
1515
uses: actions/checkout@v4
1616

1717
- name: Setup bun
18-
uses: oven-sh/setup-bun@v1
19-
20-
- name: Setup pnpm
21-
uses: pnpm/action-setup@v3
22-
with:
23-
version: 9
18+
uses: oven-sh/setup-bun@v2
2419

2520
- name: Setup Node
2621
uses: actions/setup-node@v4
2722
with:
2823
node-version: lts/*
29-
cache: "pnpm"
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: CodeCov
44-
uses: codecov/codecov-action@v4.1.0
38+
uses: codecov/codecov-action@v5.4.2
4539
with:
4640
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/not-main.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,26 @@ jobs:
1313
uses: actions/checkout@v4
1414

1515
- name: Setup bun
16-
uses: oven-sh/setup-bun@v1
17-
18-
- name: Setup pnpm
19-
uses: pnpm/action-setup@v3
20-
with:
21-
version: 9
16+
uses: oven-sh/setup-bun@v2
2217

2318
- name: Setup Node
2419
uses: actions/setup-node@v4
2520
with:
2621
node-version: lts/*
27-
cache: "pnpm"
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: CodeCov
42-
uses: codecov/codecov-action@v4.1.0
36+
uses: codecov/codecov-action@v5.4.2
4337
with:
4438
token: ${{ secrets.CODECOV_TOKEN }}

.prettierignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
.DS_Store
22
node_modules
3-
/dist
3+
dist
4+
coverage
45
.env
56
.env.*
67
!.env.example
78

8-
# Ignore files for PNPM, NPM and YARN
9+
# Ignore lock files
910
pnpm-lock.yaml
1011
package-lock.json
1112
yarn.lock
13+
bun.lock
1214

1315
# Ignore old code
1416
/old

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
"reinink",
115115
"requiredtype",
116116
"returntypetype",
117+
"rollup",
117118
"scandir",
118119
"scibona",
119120
"semrush",

bun.lock

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

package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"format": "prettier --write .",
1515
"test": "vitest",
1616
"test:ci": "vitest run --coverage --bail 1",
17-
"pre-push": "pnpm i && pnpm lint && pnpm build && pnpm test:ci"
17+
"pre-push": "bun --revision && bun i && bun run lint && bun run build && bun run test:ci"
1818
},
1919
"dependencies": {
2020
"@astrojs/alpinejs": "^0.4.5",
@@ -69,10 +69,5 @@
6969
"typescript": "^5.8.3",
7070
"unplugin-icons": "^22.1.0",
7171
"vitest": "^3.1.1"
72-
},
73-
"pnpm": {
74-
"overrides": {
75-
"@microsoft/tsdoc": "^0.15.1"
76-
}
7772
}
7873
}

0 commit comments

Comments
 (0)