Skip to content

Commit c7ba969

Browse files
authored
chore: replace yarn with pnpm (#119)
* chore: replace yarn with pnpm * chore: remove unused dependencies * chore: setup pnpm in workflows
1 parent 8476120 commit c7ba969

File tree

21 files changed

+3137
-6213
lines changed

21 files changed

+3137
-6213
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,17 @@ jobs:
1313
steps:
1414
- name: Check out code
1515
uses: actions/checkout@v4
16+
- name: Setup pnpm
17+
uses: pnpm/[email protected]
18+
with:
19+
version: 8.10.5
1620
- name: Setup Node.js
1721
uses: actions/setup-node@v4
1822
with:
1923
node-version: 20.9.x
2024
- name: Install packages
21-
run: yarn install
25+
run: pnpm install --frozen-lockfile
2226
- name: Run tests
23-
run: yarn test
27+
run: pnpm test
2428
- name: Generate production build
25-
run: yarn build
29+
run: pnpm build

.github/workflows/deploy-pages.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,19 @@ jobs:
3030
steps:
3131
- name: Checkout
3232
uses: actions/checkout@v4
33+
- name: Setup pnpm
34+
uses: pnpm/[email protected]
35+
with:
36+
version: 8.10.5
3337
- name: Set up Node
3438
uses: actions/setup-node@v4
3539
with:
3640
node-version: 20
37-
cache: yarn
41+
cache: pnpm
3842
- name: Install dependencies
39-
run: yarn install --immutable
43+
run: pnpm install --frozen-lockfile
4044
- name: Build
41-
run: yarn build
45+
run: pnpm build
4246
- name: Setup Pages
4347
uses: actions/configure-pages@v4
4448
- name: Upload artifact

.gitignore

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,5 @@
11
node_modules/
2-
*.out
3-
*.o
4-
build/
52
dist/
6-
.nyc_output/
7-
legacy/
83
coverage/
9-
target/www/
10-
/_book
114
.vscode
125
Session.vim
13-
14-
15-
# ------- yarn -------
16-
# see excellent notes at: https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
17-
# Also: `yarn.lock` and `.yarnrc.yml` (or it's older counterpart .yarnrc) "should always be stored in your repo"
18-
.yarn/*
19-
!.yarn/patches
20-
!.yarn/plugins
21-
!.yarn/releases
22-
!.yarn/sdks
23-
!.yarn/versions
24-
25-
## --> ADD if using zero-install, otherwise do NOT:
26-
#!.yarn/cache
27-
28-
## --> ELSE ADD if NOT using yarn's zero-install:
29-
.pnp.*
30-
31-
# ------- end yarn -------

.yarn/releases/yarn-4.1.1.cjs

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

.yarn/sdks/eslint/bin/eslint.js

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

.yarn/sdks/eslint/lib/api.js

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

.yarn/sdks/eslint/lib/unsupported-api.js

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

.yarn/sdks/eslint/package.json

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

.yarn/sdks/integrations.yml

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

.yarn/sdks/typescript/bin/tsc

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

0 commit comments

Comments
 (0)