From 9d79ba181e762e01ad642292acb3c49ff1771552 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Wed, 17 Jun 2026 09:22:09 +0300 Subject: [PATCH] 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. --- .changeset/fix-update-no-save-option.md | 6 ++++++ installing/commands/src/update/index.ts | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 .changeset/fix-update-no-save-option.md diff --git a/.changeset/fix-update-no-save-option.md b/.changeset/fix-update-no-save-option.md new file mode 100644 index 0000000000..6768e38a45 --- /dev/null +++ b/.changeset/fix-update-no-save-option.md @@ -0,0 +1,6 @@ +--- +"@pnpm/installing.commands": patch +"pnpm": patch +--- + +Register the `pnpm update --no-save` flag in the CLI help and option parser. \ No newline at end of file diff --git a/installing/commands/src/update/index.ts b/installing/commands/src/update/index.ts index 277106c7c9..010f981bd8 100644 --- a/installing/commands/src/update/index.ts +++ b/installing/commands/src/update/index.ts @@ -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, ],