Skip to content

Commit 2180d17

Browse files
authored
chore: upgrade to pnpm 10 (#19327)
pnpm 9 yells pretty loudly about being out of date. also, pnpm 10 no longer runs untrusted `postinstall`/`prepare` scripts by default, which, _finally_.
1 parent 92d505c commit 2180d17

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

dogfood/coder/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ RUN source $NVM_DIR/nvm.sh && \
257257
ENV PATH=$NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
258258
RUN corepack enable && \
259259
corepack prepare npm@10.8.1 --activate && \
260-
corepack prepare pnpm@9.15.1 --activate
260+
corepack prepare pnpm@10.14.0 --activate
261261

262262
RUN pnpx playwright@1.47.0 install --with-deps chromium
263263

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
formatter = pkgs.nixfmt-rfc-style;
5858

5959
nodejs = pkgs.nodejs_20;
60-
pnpm = pkgs.pnpm_9.override {
60+
pnpm = pkgs.pnpm_10.override {
6161
inherit nodejs; # Ensure it points to the above nodejs version
6262
};
6363

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"_comment": "This version doesn't matter, it's just to allow importing from other repos.",
33
"name": "coder",
44
"version": "0.0.0",
5-
"packageManager": "pnpm@9.15.1+sha512.1acb565e6193efbebda772702950469150cf12bcc764262e7587e71d19dc98a423dff9536e57ea44c49bdf790ff694e83c27be5faa23d67e0c033b583be4bfcf",
5+
"packageManager": "pnpm@10.14.0+sha512.ad27a79641b49c3e481a16a805baa71817a04bbe06a38d17e60e2eaee83f6a146c6a688125f5792e48dd5ba30e7da52a5cda4c3992b9ccf333f9ce223af84748",
66
"scripts": {
77
"format-docs": "markdown-table-formatter $(find docs -name '*.md') *.md",
88
"lint-docs": "markdownlint-cli2 --fix $(find docs -name '*.md') *.md",

site/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"repository": "https://github.com/coder/coder",
55
"private": true,
66
"license": "AGPL-3.0",
7-
"packageManager": "pnpm@9.15.1+sha512.1acb565e6193efbebda772702950469150cf12bcc764262e7587e71d19dc98a423dff9536e57ea44c49bdf790ff694e83c27be5faa23d67e0c033b583be4bfcf",
7+
"packageManager": "pnpm@10.14.0+sha512.ad27a79641b49c3e481a16a805baa71817a04bbe06a38d17e60e2eaee83f6a146c6a688125f5792e48dd5ba30e7da52a5cda4c3992b9ccf333f9ce223af84748",
88
"scripts": {
99
"build": "NODE_ENV=production pnpm vite build",
1010
"check": "biome check --error-on-warnings .",
@@ -192,7 +192,7 @@
192192
"semver": "7.6.2"
193193
},
194194
"engines": {
195-
"pnpm": ">=9.0.0 <10.0.0",
195+
"pnpm": ">=10.0.0 <11.0.0",
196196
"node": ">=18.0.0 <21.0.0"
197197
},
198198
"pnpm": {
@@ -202,6 +202,7 @@
202202
"esbuild": "^0.25.0",
203203
"form-data": "4.0.4",
204204
"prismjs": "1.30.0"
205-
}
205+
},
206+
"ignoredBuiltDependencies": ["storybook-addon-remix-react-router"]
206207
}
207208
}

0 commit comments

Comments
 (0)