fix(deps): move pnpm overrides to pnpm-workspace.yaml - #122
Merged
Merged
Conversation
pnpm 11 no longer reads the `pnpm` field from package.json, so the overrides added by the recent dependency sweep were silently ignored while the lockfile still recorded them. Frozen installs under pnpm 11 therefore abort with ERR_PNPM_LOCKFILE_CONFIG_MISMATCH, which kills the publish job in its "Bump version (patch)" step and blocks releases. Move the overrides verbatim into pnpm-workspace.yaml, where both pnpm 10 and pnpm 11 read them. The lockfile is unchanged (lockfileVersion 9.0) and the patched js-yaml / brace-expansion versions are preserved. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013S4pYSjwUsiZtdtMMpW7bw
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
PR Summary by QodoMove pnpm overrides to the pnpm 11-compatible workspace config
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can add REVIEW.md to your repo root and Qodo follows it on every PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The recent dependency sweep added
pnpm.overridestopackage.jsonto clear the js-yaml / brace-expansion advisories, and regenerated the lockfile with pnpm 10.pnpm 11 no longer reads the
pnpmfield from package.json. It warns:…and ignores it. CI's publish job runs pnpm 11, so it sees no overrides while the lockfile still records them, and the frozen install aborts:
The publish job dies in its "Bump version (patch)" step, so no release can go out until this is fixed.
Fix
Move the overrides verbatim from
package.jsonintopnpm-workspace.yaml, which both pnpm 10 (the lint job) and pnpm 11 (the publish job) read. The dependency fix itself was right; only its location was wrong.Verification
npx -y pnpm@11 install→ lockfile unchanged,lockfileVersion: '9.0'preservednpx -y pnpm@11 i --frozen-lockfile→ succeeds (Done in 571ms using pnpm v11.27.1)pnpm i --frozen-lockfilewith pnpm 10.33.0 → succeeds (Done in 1s using pnpm v10.33.0)js-yaml@4.1.1/brace-expansion@1.1.14in the lockfile;js-yaml@4.3.2andbrace-expansion@1.1.21presentpnpm run lint→ 0 errors🤖 Generated with Claude Code
https://claude.ai/code/session_013S4pYSjwUsiZtdtMMpW7bw