Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGar <gar+gh@danger.computer>2021-07-28 01:38:07 +0300
committerLuke Karrys <luke@lukekarrys.com>2021-09-30 23:35:23 +0300
commitf17dfa0ced7d8df9bb7baf378bb20d33175c8e8b (patch)
tree68ddb44f93c8f139e8cb592340a1612e608c65a6 /tap-snapshots/test/lib/utils/npm-usage.js.test.cjs
parent8349c3c1557ac52973ad08c10db492e3a5a30204 (diff)
feat(workspaces): --include-workspace-root
Adds a new config item that includes the workspace root when running non-arborist commands (i.e. repo, version, publish). Arborist will need to be udpated to look for this flag to change its behavior to include the workspace root for its functions. This also changes --workspaces to a trinary, so that setting it to false will explicitly exclude workspaces altogether. This is also going to require an arborist change so that it ignores workspaces altogether. Co-author: @fritzy PR-URL: https://github.com/npm/cli/pull/3816 Credit: @isaacs Close: #3816 Reviewed-by: @wraithgar
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.cjs46
1 files changed, 23 insertions, 23 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 0fd36c7c1..0273adf99 100644
--- a/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs
+++ b/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs
@@ -211,7 +211,7 @@ All commands:
[--json] [--package-lock-only]
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
- [-ws|--workspaces]
+ [-ws|--workspaces] [--include-workspace-root]
Run "npm help audit" for more info
@@ -314,7 +314,7 @@ All commands:
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--ignore-scripts]
[--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
- [-ws|--workspaces]
+ [-ws|--workspaces] [--include-workspace-root]
alias: ddp
@@ -345,7 +345,7 @@ All commands:
[--diff-no-prefix] [--diff-src-prefix <path>] [--diff-dst-prefix <path>]
[--diff-text] [-g|--global] [--tag <tag>]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
- [-ws|--workspaces]
+ [-ws|--workspaces] [--include-workspace-root]
Run "npm help diff" for more info
@@ -360,7 +360,7 @@ All commands:
Options:
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
- [-ws|--workspaces]
+ [-ws|--workspaces] [--include-workspace-root]
alias: dist-tags
@@ -376,7 +376,7 @@ All commands:
Options:
[--no-browser|--browser <browser>] [--registry <registry>]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
- [-ws|--workspaces]
+ [-ws|--workspaces] [--include-workspace-root]
alias: home
@@ -420,7 +420,7 @@ All commands:
[--package <pkg>[@<version>] [--package <pkg>[@<version>] ...]]
[-c|--call <call>]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
- [-ws|--workspaces]
+ [-ws|--workspaces] [--include-workspace-root]
alias: x
@@ -464,7 +464,7 @@ All commands:
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--ignore-scripts]
[--no-audit] [--no-bin-links] [--no-fund]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
- [-ws|--workspaces]
+ [-ws|--workspaces] [--include-workspace-root]
Run "npm help find-dupes" for more info
@@ -561,7 +561,7 @@ All commands:
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--ignore-scripts]
[--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
- [-ws|--workspaces]
+ [-ws|--workspaces] [--include-workspace-root]
aliases: i, in, ins, inst, insta, instal, isnt, isnta, isntal, add
@@ -604,7 +604,7 @@ All commands:
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--ignore-scripts]
[--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
- [-ws|--workspaces]
+ [-ws|--workspaces] [--include-workspace-root]
alias: it
@@ -625,7 +625,7 @@ All commands:
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--ignore-scripts]
[--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
- [-ws|--workspaces]
+ [-ws|--workspaces] [--include-workspace-root]
alias: ln
@@ -643,7 +643,7 @@ All commands:
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--link]
[--package-lock-only] [--unicode]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
- [-ws|--workspaces]
+ [-ws|--workspaces] [--include-workspace-root]
alias: la
@@ -687,7 +687,7 @@ All commands:
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--link]
[--package-lock-only] [--unicode]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
- [-ws|--workspaces]
+ [-ws|--workspaces] [--include-workspace-root]
alias: list
@@ -748,7 +748,7 @@ All commands:
Options:
[--dry-run] [--json] [--pack-destination <pack-destination>]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
- [-ws|--workspaces]
+ [-ws|--workspaces] [--include-workspace-root]
Run "npm help pack" for more info
@@ -817,7 +817,7 @@ All commands:
Options:
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--dry-run]
[--json] [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
- [-ws|--workspaces]
+ [-ws|--workspaces] [--include-workspace-root]
Run "npm help prune" for more info
@@ -831,7 +831,7 @@ All commands:
Options:
[--tag <tag>] [--access <restricted|public>] [--dry-run] [--otp <otp>]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
- [-ws|--workspaces]
+ [-ws|--workspaces] [--include-workspace-root]
Run "npm help publish" for more info
@@ -845,7 +845,7 @@ All commands:
Options:
[-g|--global] [--no-bin-links] [--ignore-scripts]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
- [-ws|--workspaces]
+ [-ws|--workspaces] [--include-workspace-root]
alias: rb
@@ -861,7 +861,7 @@ All commands:
Options:
[--no-browser|--browser <browser>]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
- [-ws|--workspaces]
+ [-ws|--workspaces] [--include-workspace-root]
Run "npm help repo" for more info
@@ -898,7 +898,7 @@ All commands:
Options:
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
- [-ws|--workspaces] [--if-present] [--ignore-scripts]
+ [-ws|--workspaces] [--include-workspace-root] [--if-present] [--ignore-scripts]
[--script-shell <script-shell>]
aliases: run, rum, urn
@@ -939,7 +939,7 @@ All commands:
Options:
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
- [-ws|--workspaces]
+ [-ws|--workspaces] [--include-workspace-root]
Run "npm help set-script" for more info
@@ -1055,7 +1055,7 @@ 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]
+ [-ws|--workspaces] [--include-workspace-root]
aliases: un, unlink, remove, rm, r
@@ -1099,7 +1099,7 @@ All commands:
[--no-package-lock] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
- [-ws|--workspaces]
+ [-ws|--workspaces] [--include-workspace-root]
aliases: up, upgrade, udpate
@@ -1116,7 +1116,7 @@ All commands:
[--allow-same-version] [--no-commit-hooks] [--no-git-tag-version] [--json]
[--preid prerelease-id] [--sign-git-tag]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
- [-ws|--workspaces]
+ [-ws|--workspaces] [--include-workspace-root]
alias: verison
@@ -1131,7 +1131,7 @@ All commands:
Options:
[--json] [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
- [-ws|--workspaces]
+ [-ws|--workspaces] [--include-workspace-root]
aliases: v, info, show