From 83cd5bd68aa6255c598b8dd3a544f16129885aee Mon Sep 17 00:00:00 2001 From: may <63159454+m4rch3n1ng@users.noreply.github.com> Date: Mon, 22 May 2023 16:19:20 +0200 Subject: [PATCH] docs: add global option for uninstall (#6480) --- lib/commands/uninstall.js | 2 +- tap-snapshots/test/lib/docs.js.test.cjs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/commands/uninstall.js b/lib/commands/uninstall.js index e5373119ec757..586a1b2d7e617 100644 --- a/lib/commands/uninstall.js +++ b/lib/commands/uninstall.js @@ -8,7 +8,7 @@ const ArboristWorkspaceCmd = require('../arborist-cmd.js') class Uninstall extends ArboristWorkspaceCmd { static description = 'Remove a package' static name = 'uninstall' - static params = ['save', ...super.params] + static params = ['save', 'global', ...super.params] static usage = ['[<@scope>/]...'] static ignoreImplicitWorkspace = false diff --git a/tap-snapshots/test/lib/docs.js.test.cjs b/tap-snapshots/test/lib/docs.js.test.cjs index 7bd6cdf10042f..f9fb62271bc66 100644 --- a/tap-snapshots/test/lib/docs.js.test.cjs +++ b/tap-snapshots/test/lib/docs.js.test.cjs @@ -3748,6 +3748,7 @@ npm uninstall [<@scope>/]... Options: [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle] +[-g|--global] [-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] [--include-workspace-root] [--install-links] @@ -3762,6 +3763,7 @@ aliases: unlink, remove, rm, r, un \`\`\` #### \`save\` +#### \`global\` #### \`workspace\` #### \`workspaces\` #### \`include-workspace-root\`