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 /docs | |
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 'docs')
-rw-r--r-- | docs/content/commands/npm-run-script.md | 2 | ||||
-rw-r--r-- | docs/content/using-npm/config.md | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/docs/content/commands/npm-run-script.md b/docs/content/commands/npm-run-script.md index aab8d769d..73c4b1c7a 100644 --- a/docs/content/commands/npm-run-script.md +++ b/docs/content/commands/npm-run-script.md @@ -220,6 +220,8 @@ it's present and fail if the script fails. This is useful, for example, when running scripts that may only apply for some builds in an otherwise generic CI setup. +This value is not exported to the environment for child processes. + <!-- automatically generated, do not edit manually --> <!-- see lib/utils/config/definitions.js --> diff --git a/docs/content/using-npm/config.md b/docs/content/using-npm/config.md index 858fe4d63..71dab98a3 100644 --- a/docs/content/using-npm/config.md +++ b/docs/content/using-npm/config.md @@ -762,6 +762,8 @@ it's present and fail if the script fails. This is useful, for example, when running scripts that may only apply for some builds in an otherwise generic CI setup. +This value is not exported to the environment for child processes. + <!-- automatically generated, do not edit manually --> <!-- see lib/utils/config/definitions.js --> |