Skip to content

Commit 6c137f1

Browse files
committed
feat: migrate yarn v1 to pnpm v9
1 parent 71dc967 commit 6c137f1

12 files changed

+10860
-9075
lines changed

.github/workflows/push.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,15 @@ jobs:
1818
steps:
1919
- name: Check out Git repository
2020
uses: actions/checkout@v4
21+
- name: Install pnpm
22+
uses: pnpm/action-setup@v4
2123
- name: Set up Node
2224
uses: actions/setup-node@v4
2325
with:
2426
node-version: 20
27+
cache: "pnpm"
2528
- name: Install dependencies
26-
run: yarn && npx playwright install --with-deps
29+
run: pnpm i && pnpm exec playwright install
2730
- name: Lint
2831
uses: wearerequired/lint-action@v2
2932
with:
@@ -36,4 +39,4 @@ jobs:
3639
prettier_extensions: js,ts,tsx
3740
prettier_auto_fix: false
3841
- name: Run Storybook test-runner
39-
run: yarn test
42+
run: pnpm test

.github/workflows/release.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ jobs:
1818
- uses: actions/checkout@v2
1919
with:
2020
ref: "main"
21+
- name: Install pnpm
22+
uses: pnpm/action-setup@v4
2123
- uses: actions/setup-node@v4
2224
with:
2325
node-version: 20
24-
- run: npm install -g yarn
26+
cache: "pnpm"
2527
- name: Release latest Ably UI version
2628
env:
2729
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -39,8 +41,10 @@ jobs:
3941
steps:
4042
- name: Checkout
4143
uses: actions/checkout@v4
44+
- name: Install pnpm
45+
uses: pnpm/action-setup@v4
4246
- name: Build
43-
run: yarn && yarn build-storybook
47+
run: pnpm i && pnpm build-storybook
4448
- name: Upload
4549
uses: actions/[email protected]
4650
with:

.github/workflows/review.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ jobs:
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v4
23+
- name: Install pnpm
24+
uses: pnpm/action-setup@v4
2325
- name: Build
24-
run: yarn && yarn build-storybook
26+
run: pnpm i && pnpm build-storybook
2527
- name: Upload
2628
uses: actions/[email protected]
2729
with:

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.bundle
22
.DS_Store
33
node_modules
4-
yarn-error.log
54
/dist
65
/preview
76
/core
@@ -10,4 +9,3 @@ yarn-error.log
109
types
1110
index.d.ts
1211
computed-icons.ts
13-
computed-colors.json

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
public-hoist-pattern[]=*storybook*
12
//registry.npmjs.org/:_authToken=${NPM_TOKEN}

.tool-versions

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
nodejs 20.13.1
2-
yarn 1.22.22
2+
pnpm 9.14.2

package.json

+9-6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@ably/ui",
33
"version": "15.0.2",
44
"description": "Home of the Ably design system library ([design.ably.com](https://design.ably.com)). It provides a showcase, development/test environment and a publishing pipeline for different distributables.",
5+
"packageManager": "[email protected]",
56
"repository": {
67
"type": "git",
78
"url": "git+ssh://[email protected]/ably/ably-ui.git"
@@ -33,6 +34,7 @@
3334
"@types/dompurify": "^3.0.5",
3435
"@types/js-cookie": "^3.0.6",
3536
"@types/lodash.throttle": "^4.1.9",
37+
"@types/react": "^18.3.12",
3638
"@types/react-dom": "^18.3.0",
3739
"@types/svg-sprite": "^0.0.39",
3840
"@typescript-eslint/eslint-plugin": "^7.0.0",
@@ -47,6 +49,7 @@
4749
"http-server": "14.1.1",
4850
"msw": "2.6.1",
4951
"msw-storybook-addon": "^2.0.2",
52+
"playwright": "^1.49.0",
5053
"prettier": "^3.2.5",
5154
"react-syntax-highlighter": "^15.6.1",
5255
"storybook": "^8.4.0",
@@ -63,19 +66,19 @@
6366
"build:tsc": "tsc && node tsc.js && rm -r types",
6467
"build:cleanup": "mv dist/* . && rm -r dist",
6568
"build:sprites": "ts-node scripts/generate-sprites.ts",
66-
"build": "yarn build:prebuild && yarn build:sprites && yarn build:swc && yarn build:tsc && yarn build:cleanup",
67-
"watch": "yarn build:swc -w",
69+
"build": "pnpm build:prebuild && pnpm build:sprites && pnpm build:swc && pnpm build:tsc && pnpm build:cleanup",
70+
"watch": "pnpm build:swc -w",
6871
"format:check": "prettier -c *.{js,ts} src/**/*.{js,ts,tsx}",
6972
"format:write": "prettier -w *.{js,ts} src/**/*.{js,ts,tsx}",
7073
"lint": "eslint *.{js,ts} src/**/*.{js,ts,tsx}",
7174
"update:all": "./scripts/update-dependents.sh",
7275
"pre-release": "./scripts/pre-release.sh",
7376
"release": "./scripts/release.sh",
7477
"start": "vite --port 5000",
75-
"storybook": "yarn build && storybook dev -p 6006",
76-
"build-storybook": "yarn build && storybook build --quiet -o preview",
77-
"test": "npx concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"yarn build-storybook && yarn http-server preview --port 6007 --silent\" \"wait-on tcp:6007 && yarn test-storybook --url http://127.0.0.1:6007\"",
78-
"test:update-snapshots": "npx concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"yarn build-storybook && yarn http-server preview --port 6007 --silent\" \"wait-on tcp:6007 && yarn test-storybook -u --url http://127.0.0.1:6007\""
78+
"storybook": "pnpm build && storybook dev -p 6006",
79+
"build-storybook": "pnpm build && storybook build --quiet -o preview",
80+
"test": "pnpx concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"pnpm build-storybook && pnpm http-server preview --port 6007 --silent\" \"pnpx wait-on tcp:6007 && pnpm test-storybook --url http://127.0.0.1:6007\"",
81+
"test:update-snapshots": "pnpx concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"pnpm build-storybook && pnpm http-server preview --port 6007 --silent\" \"pnpx wait-on tcp:6007 && pnpm test-storybook -u --url http://127.0.0.1:6007\""
7982
},
8083
"dependencies": {
8184
"@radix-ui/react-accordion": "^1.2.1",

0 commit comments

Comments
 (0)