diff options
author | isaacs <i@izs.me> | 2021-05-11 01:10:25 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2021-05-20 19:35:28 +0300 |
commit | 0d1a9d78779dc015242fc03d2dad2039004fa2df (patch) | |
tree | 73258681bc9df2a7ef16819c8590c32c1dd12603 /tap-snapshots/test/lib/utils/npm-usage.js.test.cjs | |
parent | 41099d3958d08f166313b7eb69b76458f8f9224c (diff) |
Add workspaces support to reify/rebuild commands
This adds `--workspace` support to:
- audit (including audit fix)
- ci
- dedupe
- find-dupes
- install
- install-ci-test
- install-test
- prune
- rebuild
- uninstall
- update
Also addresses missing error handling case, identified by @timoxley.
https://github.com/npm/cli/pull/3227#discussion_r631024491
PR-URL: https://github.com/npm/cli/pull/3227
Credit: @isaacs
Close: #3227
Reviewed-by: @ruyadorno
Diffstat (limited to 'tap-snapshots/test/lib/utils/npm-usage.js.test.cjs')
-rw-r--r-- | tap-snapshots/test/lib/utils/npm-usage.js.test.cjs | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs b/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs index 585fc7e8b..b6fe79fda 100644 --- a/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs +++ b/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs @@ -210,6 +210,8 @@ All commands: [--audit-level <info|low|moderate|high|critical|none>] [--dry-run] [-f|--force] [--json] [--package-lock-only] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] + [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] + [-ws|--workspaces] Run "npm help audit" for more info @@ -309,6 +311,8 @@ All commands: [--global-style] [--legacy-bundling] [--strict-peer-deps] [--package-lock] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--ignore-scripts] [--audit] [--bin-links] [--fund] [--dry-run] + [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] + [-ws|--workspaces] alias: ddp @@ -459,6 +463,8 @@ All commands: [--global-style] [--legacy-bundling] [--strict-peer-deps] [--package-lock] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--ignore-scripts] [--audit] [--bin-links] [--fund] + [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] + [-ws|--workspaces] Run "npm help find-dupes" for more info @@ -554,6 +560,8 @@ All commands: [--strict-peer-deps] [--package-lock] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--ignore-scripts] [--audit] [--bin-links] [--fund] [--dry-run] + [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] + [-ws|--workspaces] aliases: i, in, ins, inst, insta, instal, isnt, isnta, isntal, add @@ -595,6 +603,8 @@ All commands: [--strict-peer-deps] [--package-lock] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--ignore-scripts] [--audit] [--bin-links] [--fund] [--dry-run] + [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] + [-ws|--workspaces] alias: it @@ -783,7 +793,8 @@ All commands: Options: [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--dry-run] - [--json] + [--json] [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] + [-ws|--workspaces] Run "npm help prune" for more info @@ -810,6 +821,8 @@ All commands: Options: [-g|--global] [--bin-links] [--ignore-scripts] + [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] + [-ws|--workspaces] alias: rb @@ -1018,6 +1031,8 @@ All commands: Options: [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer] + [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] + [-ws|--workspaces] aliases: un, unlink, remove, rm, r @@ -1058,6 +1073,8 @@ All commands: [-g|--global] [--global-style] [--legacy-bundling] [--strict-peer-deps] [--package-lock] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--ignore-scripts] [--audit] [--bin-links] [--fund] [--dry-run] + [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] + [-ws|--workspaces] aliases: up, upgrade, udpate |