Skip to content

fix(deps): move pnpm overrides to the workspace file and pin pnpm - #17

Merged
mariano-aguero merged 1 commit into
mainfrom
mariano-aguero/pnpm-workspace-overrides
Oct 5, 2026
Merged

mariano-aguero merged 1 commit into
mainfrom
mariano-aguero/pnpm-workspace-overrides

Conversation

@mariano-aguero

Copy link
Copy Markdown
Collaborator

Summary

After #16, every rebased Dependabot PR fails CI at pnpm install --frozen-lockfile with ERR_PNPM_LOCKFILE_CONFIG_MISMATCH on overrides. The lockfiles Dependabot regenerates have no overrides section and bring back the versions the overrides were added to remove: axios 1.13.5, qs 6.14.1 and postcss 8.4.31 (see #12).

The cause is that pnpm 11 stopped reading settings from the pnpm field of package.json. The repo did not pin a pnpm version, so Dependabot resolves with a recent one and the overrides are silently ignored.

This PR moves the overrides to pnpm-workspace.yaml, which both pnpm 10 and 11+ read, and pins packageManager: [email protected], which Dependabot and pnpm/action-setup both honor. The workflow drops its own version input so the version lives in one place. The lockfile does not change.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Refactor / chore

Checklist

  • pnpm lint passes
  • pnpm build passes (type-check + build)
  • pnpm test passes
  • pnpm test:e2e passes (if behavior changed) N/A, no app behavior changes.
  • I updated relevant docs / README
  • Commits follow Conventional Commits

Notes for reviewers

Do not merge the open Dependabot PRs as they are now: their lockfiles drop the security overrides. After this lands they need another @dependabot rebase.

Verified locally with pnpm 10.28.0 on Node 20.20.1. I could not run pnpm 11 locally (it needs Node 22.13+), so the pnpm 11 side rests on its release notes and on the Dependabot result after the rebase.

This touches package.json near the engines field that #15 adds, so one of the two may need a trivial rebase.

@justalab-agents justalab-agents Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Findings outside the diff

These sit on lines this PR did not change, but this PR is what makes them wrong. They cannot be posted as inline comments.

  • [WARNING] package.json — package.json has dependency changes but no pnpm-lock.yaml update was found in this PR. Commit the lockfile together with manifest changes.
Reviewer callouts (1)

Non-blocking observations. Nothing here needs to change before merge.

  • .github:1 — "The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see actions/runner-images#14748"

@mariano-aguero
mariano-aguero merged commit 508da03 into main Oct 5, 2026
1 check 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.

1 participant