Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add global option for uninstall #6480

Merged
merged 1 commit into from May 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/commands/uninstall.js
Expand Up @@ -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>/]<pkg>...']
static ignoreImplicitWorkspace = false

Expand Down
2 changes: 2 additions & 0 deletions tap-snapshots/test/lib/docs.js.test.cjs
Expand Up @@ -3729,6 +3729,7 @@ npm uninstall [<@scope>/]<pkg>...

Options:
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
[-g|--global]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--include-workspace-root] [--install-links]

Expand All @@ -3743,6 +3744,7 @@ aliases: unlink, remove, rm, r, un
\`\`\`

#### \`save\`
#### \`global\`
#### \`workspace\`
#### \`workspaces\`
#### \`include-workspace-root\`
Expand Down