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, ],