Skip to content

Pin pnpm 10.25.0 and Node 20.x in package.json - #1906

Merged
marcleblanc2 merged 1 commit into
mainfrom
build/pin-toolchain
Sep 11, 2026
Merged

Pin pnpm 10.25.0 and Node 20.x in package.json#1906
marcleblanc2 merged 1 commit into
mainfrom
build/pin-toolchain

Conversation

@marcleblanc2

Copy link
Copy Markdown
Contributor

Vercel's build log says Using pnpm@9.x based on project creation date, while .tool-versions pins pnpm 10.25.0 and Node 20.19.6. Adding packageManager and engines makes Vercel (and Corepack) use the same versions as local development.

Verified locally with pnpm 10.25.0 / Node 20.19.6: pnpm install --frozen-lockfile and pnpm build both succeed. pnpm 10 skips dependency postinstall scripts by default (it lists contentlayer, esbuild, protobufjs, unrs-resolver as ignored); the build does not need any of them.

Watch the Vercel preview build log on this PR for Using pnpm@10.

Part of the Vercel audit in #1905 (task 3).

@vercel

vercel Bot commented Sep 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sourcegraph-docs Ready Ready Preview Sep 11, 2026 8:05am UTC

Request Review

Vercel picked pnpm 9 "based on project creation date" while
.tool-versions says pnpm 10.25.0. packageManager and engines make the
build use the same toolchain as local development.

Amp-Thread-ID: https://ampcode.com/threads/T-01a08e2d-682f-75dd-a050-cb9bf8888dac
Co-authored-by: Amp <amp@ampcode.com>
@burmudar

Copy link
Copy Markdown
Contributor

Why not upgrade these to node 24 and pnpm 12?

@marcleblanc2
marcleblanc2 merged commit ac3dc45 into main Sep 11, 2026
4 checks passed
@marcleblanc2
marcleblanc2 deleted the build/pin-toolchain branch September 11, 2026 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants