Skip to content

Commit ab49faf

Browse files
styflecursoragent
andauthored
chore: migrate workspace to pnpm 10 (#762)
<!-- CURSOR_AGENT_PR_BODY_BEGIN --> ## Summary - pin the workspace package manager to pnpm 10.33.0 with the requested integrity hash - add pnpm workspace release-age and build-script approval settings - convert the pnpm lockfile to the pnpm 10-compatible v9 format while preserving existing resolved versions - update CI installs to use the frozen pnpm lockfile - configure the playground Vercel build to enable Corepack - upgrade Turbo to a pnpm-lockfile-v9-compatible release and pass `COREPACK_HOME` through Turbo's global environment - add a Turbo `build` task so Vercel's Turborepo integration can assign build settings without warnings ## Testing - `pnpm turbo run build --dry-run` - `pnpm prettier-check` - `pnpm install --frozen-lockfile` - `pnpm ci-check` - `pnpm build` - `pnpm test` - `pnpm --filter satori-playground build` <!-- CURSOR_AGENT_PR_BODY_END --> <div><a href="https://cursor.com/agents/bc-6ceb610e-7d49-406c-9a86-c5adf84ab8f8"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>&nbsp;<a href="https://cursor.com/background-agent?bcId=bc-6ceb610e-7d49-406c-9a86-c5adf84ab8f8"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img alt="Open in Cursor" width="131" height="28" src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;</div> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent 8a0619f commit ab49faf

7 files changed

Lines changed: 6185 additions & 4988 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,16 @@ jobs:
2121
steps:
2222
- name: Checkout
2323
uses: actions/checkout@v3
24-
- name: Use pnpm
25-
run: corepack enable pnpm && pnpm --version
24+
- name: Enable pnpm
25+
run: corepack enable pnpm
2626
- name: Use Node.js ${{ matrix.node }}
2727
uses: actions/setup-node@v3
2828
with:
2929
node-version: ${{ matrix.node }}
3030
cache: 'pnpm'
31-
- run: pnpm install
31+
- name: Check pnpm
32+
run: pnpm --version
33+
- run: pnpm install --frozen-lockfile
3234
- run: pnpm ci-check
3335

3436
test:
@@ -50,14 +52,16 @@ jobs:
5052
steps:
5153
- name: Checkout
5254
uses: actions/checkout@v3
53-
- name: Use pnpm
54-
run: corepack enable pnpm && pnpm --version
55+
- name: Enable pnpm
56+
run: corepack enable pnpm
5557
- name: Use Node.js ${{ matrix.node }}
5658
uses: actions/setup-node@v3
5759
with:
5860
node-version: ${{ matrix.node }}
5961
cache: 'pnpm'
60-
- run: pnpm install
62+
- name: Check pnpm
63+
run: pnpm --version
64+
- run: pnpm install --frozen-lockfile
6165
- run: pnpm build
6266
- run: pnpm test
6367
- name: Maybe Release

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
"react": "^17.0.2",
119119
"sharp": "^0.34.3",
120120
"tsup": "^7.1.0",
121-
"turbo": "^1.6.3",
121+
"turbo": "^2.9.14",
122122
"twrnc": "^3.4.0",
123123
"typescript": "^5",
124124
"vitest": "^0.32.0"
@@ -136,7 +136,7 @@
136136
"postcss-value-parser": "^4.2.0",
137137
"yoga-layout": "^3.2.1"
138138
},
139-
"packageManager": "pnpm@8.7.0",
139+
"packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319",
140140
"engines": {
141141
"node": ">=16"
142142
},

playground/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@
22
"private": true,
33
"name": "satori-playground",
44
"license": "MPL-2.0",
5+
"packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319",
56
"scripts": {
67
"dev": "next",
78
"debug": "node --inspect node_modules/next/dist/bin/next",
89
"build": "next build",
910
"start": "next start"
1011
},
12+
"engines": {
13+
"node": ">=20"
14+
},
1115
"dependencies": {
1216
"@babel/runtime": "^7.19.0",
1317
"@monaco-editor/react": "^4.4.5",

playground/vercel.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://openapi.vercel.sh/vercel.json",
3+
"build": {
4+
"env": {
5+
"ENABLE_EXPERIMENTAL_COREPACK": "1"
6+
}
7+
}
8+
}

0 commit comments

Comments
 (0)