Skip to content

fix(cli): add peerDependencyRules for standalone pnpm projects#1222

Merged
graphite-app[bot] merged 1 commit intomainfrom
add-peerDependencyRules-on-create
Mar 31, 2026
Merged

fix(cli): add peerDependencyRules for standalone pnpm projects#1222
graphite-app[bot] merged 1 commit intomainfrom
add-peerDependencyRules-on-create

Conversation

@fengmk2
Copy link
Copy Markdown
Member

@fengmk2 fengmk2 commented Mar 30, 2026

When vp create or vp migrate sets up a standalone pnpm project, only
pnpm.overrides was written to package.json. This caused noisy unmet
peer dependency warnings because packages expecting vite saw the
vite-plus version instead. Add pnpm.peerDependencyRules (allowAny +
allowedVersions) alongside overrides to suppress these warnings, matching
the behavior already present for monorepo projects via
rewritePnpmWorkspaceYaml().

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 30, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 487e338
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/69cb3876a2d97f0008aabc21

Copy link
Copy Markdown
Member Author

fengmk2 commented Mar 30, 2026


How to use the Graphite Merge Queue

Add the label auto-merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@fengmk2 fengmk2 self-assigned this Mar 30, 2026
@fengmk2 fengmk2 marked this pull request as ready for review March 30, 2026 15:34
@fengmk2 fengmk2 added the test: e2e Auto run e2e tests label Mar 30, 2026 — with Graphite App
@fengmk2 fengmk2 force-pushed the add-peerDependencyRules-on-create branch from 9865894 to c3af7c5 Compare March 30, 2026 15:38
@cpojer
Copy link
Copy Markdown
Member

cpojer commented Mar 31, 2026

(btw. it would be better to write all pnpm config to pnpm-workspace.yaml instead)

@fengmk2
Copy link
Copy Markdown
Member Author

fengmk2 commented Mar 31, 2026

@cpojer I will refactor it in next pr.

@graphite-app
Copy link
Copy Markdown

graphite-app bot commented Mar 31, 2026

Merge activity

When `vp create` or `vp migrate` sets up a standalone pnpm project, only
`pnpm.overrides` was written to package.json. This caused noisy unmet
peer dependency warnings because packages expecting `vite` saw the
vite-plus version instead. Add `pnpm.peerDependencyRules` (allowAny +
allowedVersions) alongside overrides to suppress these warnings, matching
the behavior already present for monorepo projects via
rewritePnpmWorkspaceYaml().
@graphite-app graphite-app bot force-pushed the add-peerDependencyRules-on-create branch from c3af7c5 to 487e338 Compare March 31, 2026 02:58
@graphite-app graphite-app bot merged commit 487e338 into main Mar 31, 2026
66 checks passed
@graphite-app graphite-app bot deleted the add-peerDependencyRules-on-create branch March 31, 2026 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test: e2e Auto run e2e tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants