@pnpm/npm-conf
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -12,2 +12,3 @@ 'use strict'; | ||
const warnings = []; | ||
let failedToLoadBuiltInConfig = false; | ||
@@ -21,4 +22,5 @@ if (require.resolve.paths) { | ||
} catch (error) { | ||
// If npm module cannot be found, add warning about adding global config to overwrite builtin config | ||
warnings.push('Load npm builtin configs failed, you can use "pnpm config ls" to show builtin configs. And then use "pnpm config --global set <key> <value>" to migrate configs from builtin to global.'); | ||
// Error will be thrown if module cannot be found. | ||
// Update the flag while loading builtin config failed. | ||
failedToLoadBuiltInConfig = true; | ||
} | ||
@@ -74,2 +76,3 @@ | ||
warnings: warnings.filter(Boolean), | ||
failedToLoadBuiltInConfig, | ||
}; | ||
@@ -76,0 +79,0 @@ }; |
{ | ||
"name": "@pnpm/npm-conf", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Get the npm config", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
891
28579