Skip to content

Commit 83cd5bd

Browse files
authoredMay 22, 2023
docs: add global option for uninstall (#6480)
1 parent 361e194 commit 83cd5bd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎lib/commands/uninstall.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const ArboristWorkspaceCmd = require('../arborist-cmd.js')
88
class Uninstall extends ArboristWorkspaceCmd {
99
static description = 'Remove a package'
1010
static name = 'uninstall'
11-
static params = ['save', ...super.params]
11+
static params = ['save', 'global', ...super.params]
1212
static usage = ['[<@scope>/]<pkg>...']
1313
static ignoreImplicitWorkspace = false
1414

‎tap-snapshots/test/lib/docs.js.test.cjs

+2
Original file line numberDiff line numberDiff line change
@@ -3748,6 +3748,7 @@ npm uninstall [<@scope>/]<pkg>...
37483748
37493749
Options:
37503750
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
3751+
[-g|--global]
37513752
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
37523753
[-ws|--workspaces] [--include-workspace-root] [--install-links]
37533754
@@ -3762,6 +3763,7 @@ aliases: unlink, remove, rm, r, un
37623763
\`\`\`
37633764
37643765
#### \`save\`
3766+
#### \`global\`
37653767
#### \`workspace\`
37663768
#### \`workspaces\`
37673769
#### \`include-workspace-root\`

0 commit comments

Comments
 (0)
Please sign in to comment.