Skip to content

fix(migrate): stop writing the managed vitest pnpm peerDependencyRules entry - #3606

Open
voidzero-bot[bot] wants to merge 1 commit into
mainfrom
triagebot/fix-3604
Open

voidzero-bot[bot] wants to merge 1 commit into
mainfrom
triagebot/fix-3604

Conversation

@voidzero-bot

@voidzero-bot voidzero-bot Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

vp migrate wrote a managed vitest entry into pnpm peerDependencyRules (allowAny: [vitest], allowedVersions: { vitest: "*" }) for every workspace that uses Vitest directly, and re-inserted it ("Package manager settings configured") after the user removed it. The rule dates from the @voidzero-dev/vite-plus-test wrapper era, when vitest resolved to a non-vitest version and peers needed silencing. Since #1588 the managed vitest is pinned to the real bundled Vitest version, so vitest peer ranges are checked against a genuine version — the rule can only hide real incompatibilities, the same reasoning vitePeerDependencyRuleRequired already applies to vite.

pnpmPeerDependencyRuleKeys now drops vitest from the managed peer-rule keys unless the managed spec still needs it (wrapper alias, dist-tag, file:/URL spec, or prerelease/build), mirroring the vite handling, and treats a lingering managed rule as stale so it is removed everywhere. A rule-less Vitest workspace is no longer flagged as needing a package-manager settings update, a user-authored allowedVersions.vitest range other than '*' is preserved, the migrate summary names the removed rule, and the migration rules documentation covers the new behavior.

Closes #3604

Automated triage bot fix (AI-assisted).

@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://triagebot-fix-3604-viteplus-dev.voidzero-docs.workers.dev (commit 42e4e24)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://345516a7-viteplus-dev.voidzero-docs.workers.dev 42e4e24 2026-11-29T05:30:43.724Z Visit the dashboard ↗

@github-actions

Copy link
Copy Markdown
Contributor

✅ Staging deployment successful!

Preview: https://viteplus-staging.void.app/
Commit: 42e4e24

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vp migrate keeps writing a vitest entry into pnpm peerDependencyRules, which hides real peer mismatches, and writes it back after it is removed

0 participants