fix: expose update --no-save in CLI help#12091
Conversation
The update command already honors --no-save and the docs already mention it, but the flag was missing from the update command metadata. Add the option entry so pnpm update --help shows it and the CLI surface matches the documented behavior.
|
💖 Thanks for opening this pull request! 💖 |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🧰 Additional context used📓 Path-based instructions (1)**/*.{ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (2)📚 Learning: 2026-05-26T21:01:06.666ZApplied to files:
📚 Learning: 2026-05-14T09:04:00.133ZApplied to files:
🔇 Additional comments (2)
📝 WalkthroughWalkthroughThe PR registers the ChangesCLI Help Registration
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Review Summary by QodoExpose update --no-save flag in CLI help
WalkthroughsDescription• Expose --no-save flag in update command CLI help • Register missing option in command metadata • Align CLI surface with documented behavior Diagramflowchart LR
A["update command metadata"] -- "add --no-save option" --> B["CLI help displays flag"]
C["documented behavior"] -- "now matches" --> B
File Changes1. installing/commands/src/update/index.ts
|
There was a problem hiding this comment.
Pull request overview
Adds the missing --no-save flag entry to the pnpm update command's help metadata so it appears in pnpm update --help, matching already-documented and implemented behavior.
Changes:
- Add
--no-saveoption descriptor to the update command's option list. - Add a changeset entry describing the fix.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| installing/commands/src/update/index.ts | Adds the --no-save option entry to the update command help metadata. |
| .changeset/fix-update-no-save-option.md | Patch-level changeset for @pnpm/installing.commands and pnpm. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Congrats on merging your first pull request! 🎉🎉🎉 |
The update command already honors --no-save and the docs already mention it, but the flag was missing from the update command metadata.
Add the option entry so pnpm update --help shows it and the CLI surface matches the documented behavior.
Summary by CodeRabbit
--no-saveoption forpnpm updateis now properly displayed in CLI help, allowing users to prevent package.json range updates.