Skip to content

Commit cca2bff

Browse files
committed
build: migrate from npm to pnpm
1 parent 6447013 commit cca2bff

7 files changed

Lines changed: 4724 additions & 7239 deletions

File tree

.github/workflows/build-and-deploy.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,24 @@ jobs:
1515
with:
1616
fetch-depth: 0
1717

18+
- uses: pnpm/action-setup@v4.2.0
19+
with:
20+
run_install: false
21+
1822
- name: Setup Node.js
1923
uses: actions/setup-node@v6.0.0
2024
with:
21-
node-version-file: "package.json"
22-
cache: 'npm'
25+
node-version-file: 'package.json'
26+
cache: 'pnpm'
2327

2428
- name: Install dependencies
25-
run: npm ci
29+
run: pnpm --frozen-lockfile
2630

2731
- name: Run type checking
28-
run: npm run type-check
32+
run: pnpm type-check
2933

3034
- name: Build userscripts
31-
run: npm run build
35+
run: pnpm build
3236

3337
- name: Checkout dist branch
3438
run: |

.github/workflows/checks.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,21 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v5
10+
- uses: pnpm/action-setup@v4.2.0
11+
with:
12+
run_install: false
1013
- uses: actions/setup-node@v6.0.0
1114
with:
12-
node-version-file: "package.json"
13-
cache: 'npm'
15+
node-version-file: 'package.json'
16+
cache: 'pnpm'
1417
- name: 'Install dependencies'
15-
run: npm install
18+
run: pnpm --frozen-lockfile
1619
- name: 'Run type checking'
17-
run: npm run type-check
20+
run: pnpm type-check
1821
- name: 'Run linter'
19-
run: npm run lint
22+
run: pnpm lint
2023
- name: 'Build userscripts'
21-
run: npm run build
24+
run: pnpm build
2225
auto-merge:
2326
name: 'dependabot-auto-merge'
2427
needs: linter

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
.idea/
66
*.iml
77

8-
# NPM
98
node_modules/
109

1110
# Build output

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
package-lock.json
1+
pnpm-lock.yaml

0 commit comments

Comments
 (0)