@npmcli/config
Advanced tools
Comparing version 2.3.1 to 2.3.2
@@ -500,2 +500,7 @@ // TODO: set the scope config from package.json or explicit cli 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') { | ||
@@ -507,5 +512,2 @@ this.data.get('project').source = '(global mode enabled, ignored)' | ||
// 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') | ||
@@ -512,0 +514,0 @@ // if we're in the ~ directory, and there happens to be a node_modules |
{ | ||
"name": "@npmcli/config", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "lib" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44411
960