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
path: root/lib/ci.js
diff options
context:
space:
mode:
authorGar <gar+gh@danger.computer>2021-06-15 20:50:14 +0300
committerGar <gar+gh@danger.computer>2021-06-16 00:55:23 +0300
commit102d4e6fb3c3b02148dbeee977a7d1e6372340d5 (patch)
treeba2a004abbbcaeab08b839d3fba09992ec07f0ad /lib/ci.js
parentc6a8734d7d6e4b6d061110a01e45e1d418d56489 (diff)
fix(workspaces): explicitly error in global mode
Also includes a preliminary refactor to consolidate workspace logic now that every command that supports workspaces has it implemented. PR-URL: https://github.com/npm/cli/pull/3417 Credit: @wraithgar Close: #3417 Reviewed-by: @ruyadorno
Diffstat (limited to 'lib/ci.js')
-rw-r--r--lib/ci.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ci.js b/lib/ci.js
index 3a2a2b316..3ff4b65ba 100644
--- a/lib/ci.js
+++ b/lib/ci.js
@@ -55,7 +55,7 @@ class CI extends ArboristWorkspaceCmd {
path: where,
log: this.npm.log,
save: false, // npm ci should never modify the lockfile or package.json
- workspaces: this.workspaces,
+ workspaces: this.workspaceNames,
}
const arb = new Arborist(opts)