Skip to content

Commit ad761ad

Browse files
committed
Switch to pnpm
1 parent 979bf6c commit ad761ad

25 files changed

Lines changed: 14468 additions & 23400 deletions

File tree

.github/workflows/checks.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,17 @@ jobs:
1515
with:
1616
node-version-file: '.nvmrc'
1717

18-
- name: Enable Corepack
19-
run: corepack enable
18+
- name: Install pnpm
19+
uses: pnpm/action-setup@v4
2020

21-
- name: Yarn Install
22-
run: yarn
21+
- name: Install system dependencies
22+
run: sudo apt-get update && sudo apt-get install -y rsync
23+
24+
- name: Install dependencies
25+
run: pnpm install --frozen-lockfile
2326

2427
- name: Build All Packages
25-
run: yarn build:all
28+
run: pnpm build:all
2629

2730
- name: Test
28-
run: yarn test:all
31+
run: pnpm test:all

.github/workflows/coverage.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,20 @@ jobs:
2626
- uses: browser-actions/setup-chrome@v1
2727
- run: chrome --version
2828

29-
- name: Enable Corepack
30-
run: corepack enable
29+
- name: Install pnpm
30+
uses: pnpm/action-setup@v4
31+
32+
- name: Install system dependencies
33+
run: sudo apt-get update && sudo apt-get install -y rsync
3134

3235
- name: Install dependencies
33-
run: yarn install
36+
run: pnpm install --frozen-lockfile
3437

3538
- name: Build packages
36-
run: yarn build:all
39+
run: pnpm build:all
3740

3841
- name: Run Jest tests
39-
run: yarn test:coverage
42+
run: pnpm test:coverage
4043

4144
- name: Upload coverage reports to Codecov
4245
uses: codecov/codecov-action@v4

.github/workflows/release.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,24 @@ jobs:
2222
with:
2323
node-version-file: '.nvmrc'
2424

25-
- name: Enable Corepack
26-
run: corepack enable
25+
- name: Install pnpm
26+
uses: pnpm/action-setup@v4
27+
28+
- name: Install system dependencies
29+
run: sudo apt-get update && sudo apt-get install -y rsync
2730

2831
- name: Install Dependencies
29-
run: yarn
32+
run: pnpm install --frozen-lockfile
3033

3134
- name: Build Packages
32-
run: yarn build:all
35+
run: pnpm build:all
3336

3437
- name: Create Release Pull Request or Publish to npm
3538
id: changesets
3639
uses: changesets/action@v1
3740
with:
3841
# Release builds the packages and calls changeset publish
39-
publish: yarn release
42+
publish: pnpm release
4043
env:
4144
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4245
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.yarn/install-state.gz

-1.42 MB
Binary file not shown.

.yarn/releases/yarn-4.7.0.cjs

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

.yarnrc.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ The correct Yarn version will be automatically used thanks to the `packageManage
3939

4040
### Building
4141

42-
To build all packages and docs, run `yarn install` then `yarn build:all`
42+
To build all packages and docs, run `pnpm install` then `pnpm build:all`

docs/contributing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Before you begin, ensure you have:
6464
Build all packages in the correct order:
6565

6666
```bash
67-
yarn build:all
67+
pnpm build:all
6868
```
6969

7070
<Check>

package.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,13 @@
33
"version": "2.0.0",
44
"private": true,
55
"license": "MIT",
6-
"workspaces": [
7-
"packages/*"
8-
],
96
"scripts": {
10-
"build:all": "yarn workspaces foreach --all --parallel run build",
11-
"docs": "cd docs && yarn dlx mint dev",
7+
"build:all": "pnpm -r run build",
8+
"docs": "cd docs && pnpm dlx mint dev",
129
"release": "changeset publish && git push --follow-tags",
13-
"release:internal": "yarn build:all && yarn changeset && yarn changeset version --snapshot internal && yarn changeset publish --no-git-tag --snapshot --tag internal",
14-
"test:all": "yarn workspaces foreach --all --parallel run test",
15-
"test:coverage": "yarn workspaces foreach --all --parallel run test --coverage"
10+
"release:internal": "pnpm build:all && pnpm changeset && pnpm changeset version --snapshot internal && pnpm changeset publish --no-git-tag --snapshot --tag internal",
11+
"test:all": "pnpm -r run test",
12+
"test:coverage": "pnpm -r run test --coverage"
1613
},
1714
"dependencies": {
1815
"@biomejs/biome": "^1.9.4",
@@ -28,5 +25,5 @@
2825
"ts-node": "2.1.2",
2926
"typescript": "^5.8.2"
3027
},
31-
"packageManager": "yarn@4.7.0"
28+
"packageManager": "pnpm@9.0.0"
3229
}
-369 KB
Binary file not shown.

0 commit comments

Comments
 (0)