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.
This commit is contained in:
Orgad Shaneh
2026-06-17 09:22:09 +03:00
committed by GitHub
parent 3f0fb219b6
commit 9d79ba181e
2 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
---
"@pnpm/installing.commands": patch
"pnpm": patch
---
Register the `pnpm update --no-save` flag in the CLI help and option parser.

View File

@@ -151,6 +151,10 @@ dependencies is not found inside the workspace',
name: '--interactive',
shortAlias: '-i',
},
{
description: 'Don\'t update the ranges in package.json.',
name: '--no-save',
},
OPTIONS.globalDir,
...UNIVERSAL_OPTIONS,
],