@npmcli/config 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/set-envs.js +2 -2
- package/package.json +1 -1
package/lib/set-envs.js
CHANGED
|
@@ -67,8 +67,8 @@ const setEnvs = (config) => {
|
|
|
67
67
|
const cliSet = new Set(Object.keys(cliConf))
|
|
68
68
|
const envSet = new Set(Object.keys(envConf))
|
|
69
69
|
for (const key in cliConf) {
|
|
70
|
-
const { deprecated } = definitions[key] || {}
|
|
71
|
-
if (deprecated)
|
|
70
|
+
const { deprecated, envExport = true } = definitions[key] || {}
|
|
71
|
+
if (deprecated || envExport === false)
|
|
72
72
|
continue
|
|
73
73
|
|
|
74
74
|
if (sameConfigValue(defaults[key], cliConf[key])) {
|