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
diff options
context:
space:
mode:
authorRuy Adorno <ruyadorno@hotmail.com>2021-03-24 23:04:53 +0300
committerRuy Adorno <ruyadorno@hotmail.com>2021-03-25 00:03:36 +0300
commit7b45e9df6102c7bd6e403d1fdc9939581c38f546 (patch)
tree78f39064285694a162acd231bea1987b1beee581 /lib
parente544f8cd21b6046859f30e056729414cd048405b (diff)
fix: npm config warn on workspaces
When a workspace/workspaces config option is defined, we should log a warning message to be explicit about not supporting workspaces in the context of the `npm config` command. PR-URL: https://github.com/npm/cli/pull/2950 Credit: @ruyadorno Close: #2950 Reviewed-by: @wraithgar
Diffstat (limited to 'lib')
-rw-r--r--lib/config.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/config.js b/lib/config.js
index 6bfde9845..f53d7e5ae 100644
--- a/lib/config.js
+++ b/lib/config.js
@@ -89,6 +89,7 @@ class Config extends BaseCommand {
}
execWorkspaces (args, filters, cb) {
+ this.npm.log.warn('config', 'This command does not support workspaces.')
this.exec(args, cb)
}