diff options
author | Ruy Adorno <ruyadorno@hotmail.com> | 2022-04-05 16:39:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-05 16:39:00 +0300 |
commit | 840c338aa6aba7dc39d9d3afba075701e3979362 (patch) | |
tree | 52fa71019757b0f742e971cd532baf1c5b908ead /lib | |
parent | f37f7d23f6e9e33cbd6600670020b9c2f4754b05 (diff) |
fix(run-script): don't cascade if-present config (#4678)
Do not pass the `if-present` env config value to spawned processes.
Fixes: https://github.com/npm/cli/issues/3352
Close: https://github.com/npm/cli/pull/3589
Diffstat (limited to 'lib')
-rw-r--r-- | lib/utils/config/definitions.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/utils/config/definitions.js b/lib/utils/config/definitions.js index 316e73709..7ff0eeb12 100644 --- a/lib/utils/config/definitions.js +++ b/lib/utils/config/definitions.js @@ -880,6 +880,7 @@ define('https-proxy', { define('if-present', { default: false, type: Boolean, + envExport: false, description: ` If true, npm will not exit with an error code when \`run-script\` is invoked for a script that isn't defined in the \`scripts\` section of |