Skip to content

Commit 9d79ba1

Browse files
authored
fix: expose update --no-save in CLI help (#12091)
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.
1 parent 3f0fb21 commit 9d79ba1

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@pnpm/installing.commands": patch
3+
"pnpm": patch
4+
---
5+
6+
Register the `pnpm update --no-save` flag in the CLI help and option parser.

installing/commands/src/update/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ dependencies is not found inside the workspace',
151151
name: '--interactive',
152152
shortAlias: '-i',
153153
},
154+
{
155+
description: 'Don\'t update the ranges in package.json.',
156+
name: '--no-save',
157+
},
154158
OPTIONS.globalDir,
155159
...UNIVERSAL_OPTIONS,
156160
],

0 commit comments

Comments
 (0)