diff options
author | Ruy Adorno <ruyadorno@hotmail.com> | 2021-05-14 23:37:47 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2021-05-20 21:06:50 +0300 |
commit | c18626f047e3a0fedd3c86554a4a0a8f27925e77 (patch) | |
tree | 04bf1c9118e93ee350ebb959b801ecce08f9d413 /tap-snapshots/test/lib/utils/npm-usage.js.test.cjs | |
parent | b3add87e686968b7af3067c685d2561baf90e397 (diff) |
feat: add ls workspaces
- Add listing workspaces deps by default in `npm ls`
- Add ability to filter the result tree by workspace using the -w config
- Added tests and docs
Fixes: https://github.com/npm/statusboard/issues/302
PR-URL: https://github.com/npm/cli/pull/3250
Credit: @ruyadorno
Close: #3250
Reviewed-by: @isaacs
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 | 4 |
1 files changed, 4 insertions, 0 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 a67819eb0..a81a8f44b 100644 --- a/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs +++ b/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs @@ -640,6 +640,8 @@ All commands: [-a|--all] [--json] [-l|--long] [-p|--parseable] [-g|--global] [--depth <depth>] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--link] [--unicode] + [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] + [-ws|--workspaces] alias: la @@ -682,6 +684,8 @@ All commands: [-a|--all] [--json] [-l|--long] [-p|--parseable] [-g|--global] [--depth <depth>] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--link] [--unicode] + [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] + [-ws|--workspaces] alias: list |