Skip to content

fix(pm): reject multiple save targets in install with packages - #3516

Merged
fengmk2 merged 3 commits into
voidzero-dev:mainfrom
liangmiQwQ:fix/install-save-target-conflict
Nov 21, 2026
Merged

fengmk2 merged 3 commits into
voidzero-dev:mainfrom
liangmiQwQ:fix/install-save-target-conflict

Conversation

@liangmiQwQ

Copy link
Copy Markdown
Collaborator

The current vp install with package names silently drops all but one save target. For example, vp install -O -D react adds react to devDependencies and ignores -O. vp add -O -D react already rejects this through a clap group.

This PR makes vp install with package names exit with an error when more than one of --prod, --dev, --save-peer, and --save-optional is given. It doesn't change vp install without package names, where --prod and --dev are install filters and can still be combined.

🤖 Generated with Claude Code

@liangmiQwQ liangmiQwQ left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

✅ Passed review in the Codex app using GPT-6.2 Astra Max.

@liangmiQwQ
liangmiQwQ marked this pull request as ready for review November 21, 2026 04:56
@fengmk2 fengmk2 self-assigned this Nov 21, 2026
@fengmk2
fengmk2 merged commit 39fb4e5 into voidzero-dev:main Nov 21, 2026
105 of 107 checks passed
@fengmk2 fengmk2 mentioned this pull request Nov 23, 2026
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.

3 participants