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-11-30 01:28:11 +0300
committerGar <gar+gh@danger.computer>2021-11-30 17:49:59 +0300
commit0e63df61283a2f7ace991f72e4577c6f23ffc5df (patch)
tree83061a0340bf65e2a202afbf039b1a822f141a32 /node_modules
parenta8bc95f11c9d21319581d7b09baf9f864bea21ac (diff)
deps: @npmcli/config@2.3.2
* fix: always load localPrefix PR-URL: https://github.com/npm/cli/pull/4102 Credit: @wraithgar Close: #4102 Reviewed-by: @lukekarrys
Diffstat (limited to 'node_modules')
-rw-r--r--node_modules/@npmcli/config/lib/index.js8
-rw-r--r--node_modules/@npmcli/config/package.json2
2 files changed, 6 insertions, 4 deletions
diff --git a/node_modules/@npmcli/config/lib/index.js b/node_modules/@npmcli/config/lib/index.js
index 724ce14c3..e52f7a14f 100644
--- a/node_modules/@npmcli/config/lib/index.js
+++ b/node_modules/@npmcli/config/lib/index.js
@@ -497,15 +497,17 @@ class Config {
}
async loadProjectConfig () {
+ // the localPrefix can be set by the CLI config, but otherwise is
+ // found by walking up the folder tree. either way, we load it before
+ // we return to make sure localPrefix is set
+ await this.loadLocalPrefix()
+
if (this[_get]('global') === true || this[_get]('location') === 'global') {
this.data.get('project').source = '(global mode enabled, ignored)'
this.sources.set(this.data.get('project').source, 'project')
return
}
- // the localPrefix can be set by the CLI config, but otherwise is
- // found by walking up the folder tree
- await this.loadLocalPrefix()
const projectFile = resolve(this.localPrefix, '.npmrc')
// if we're in the ~ directory, and there happens to be a node_modules
// folder (which is not TOO uncommon, it turns out), then we can end
diff --git a/node_modules/@npmcli/config/package.json b/node_modules/@npmcli/config/package.json
index f36d8f7b1..299202ec2 100644
--- a/node_modules/@npmcli/config/package.json
+++ b/node_modules/@npmcli/config/package.json
@@ -1,6 +1,6 @@
{
"name": "@npmcli/config",
- "version": "2.3.1",
+ "version": "2.3.2",
"files": [
"lib"
],