Skip to content

Specify pnpm version in package.json#1

Merged
simonweniger merged 3 commits intomainfrom
claude/update-pnpm-detection-iDssj
Apr 12, 2026
Merged

Specify pnpm version in package.json#1
simonweniger merged 3 commits intomainfrom
claude/update-pnpm-detection-iDssj

Conversation

@simonweniger
Copy link
Copy Markdown
Contributor

This change pins the project to use pnpm version 10.20.0 by adding the packageManager field to package.json.

Summary

Added explicit package manager specification to ensure all developers and CI/CD environments use a consistent version of pnpm.

Key Changes

  • Added "packageManager": "pnpm@10.20.0" to package.json

Details

The packageManager field is a standard npm feature that enforces a specific package manager version. This ensures reproducible builds and prevents compatibility issues that may arise from different pnpm versions being used across the team.

https://claude.ai/code/session_012xBSdrYYDiksEEEMbaepJQ

Vercel was detecting pnpm-lock.yaml v9 as ambiguous between pnpm 9.x
and 10.x and falling back to a project-creation-date heuristic. Pinning
via the packageManager field makes Corepack/Vercel use a deterministic
pnpm version and silences the warning.
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 12, 2026

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

Project Deployment Actions Updated (UTC)
happy-shadows Ready Ready Preview, Comment Apr 12, 2026 3:19pm

pnpm 10 ignores dependency lifecycle scripts by default, which caused
esbuild's postinstall (native binary setup) to be skipped and the
subsequent vite build to fail. Allow-list esbuild via
pnpm.onlyBuiltDependencies.
When Vercel builds the web package directly (without running the root
'pnpm -r build'), tsc could not resolve '@happy-shadows/core' because
its dist/ outputs had never been emitted.

Mark shadow-core as a composite project and add a TypeScript project
reference from web. 'tsc -b' in web now builds shadow-core first,
producing dist/index.js and dist/index.d.ts before type-checking web.
@simonweniger simonweniger merged commit c6fddc4 into main Apr 12, 2026
3 checks passed
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.

2 participants