@npmcli/config
Advanced tools
Comparing version 7.0.0 to 7.0.1
@@ -613,3 +613,11 @@ // TODO: set the scope config from package.json or explicit cli config | ||
await readFile(file, 'utf8').then( | ||
data => this.#loadObject(ini.parse(data), type, file), | ||
data => { | ||
const parsedConfig = ini.parse(data) | ||
if (type === 'project' && parsedConfig.prefix) { | ||
// Log error if prefix is mentioned in project .npmrc | ||
/* eslint-disable-next-line max-len */ | ||
log.error('config', `prefix cannot be changed from project config: ${file}.`) | ||
} | ||
return this.#loadObject(parsedConfig, type, file) | ||
}, | ||
er => this.#loadObject(null, type, file, er) | ||
@@ -616,0 +624,0 @@ ) |
{ | ||
"name": "@npmcli/config", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"files": [ | ||
@@ -36,3 +36,3 @@ "bin/", | ||
"@npmcli/template-oss": "4.18.0", | ||
"tap": "^16.3.4" | ||
"tap": "^16.3.8" | ||
}, | ||
@@ -39,0 +39,0 @@ "dependencies": { |
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
125154
3516