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 /tap-snapshots/test/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 'tap-snapshots/test/lib')
-rw-r--r-- | tap-snapshots/test/lib/utils/config/definitions.js.test.cjs | 2 | ||||
-rw-r--r-- | tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tap-snapshots/test/lib/utils/config/definitions.js.test.cjs b/tap-snapshots/test/lib/utils/config/definitions.js.test.cjs index b18b8e7a8..91f0d7828 100644 --- a/tap-snapshots/test/lib/utils/config/definitions.js.test.cjs +++ b/tap-snapshots/test/lib/utils/config/definitions.js.test.cjs @@ -795,6 +795,8 @@ This option can be used when it's desirable to optionally run a script when 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. ` exports[`test/lib/utils/config/definitions.js TAP > config description for ignore-scripts 1`] = ` diff --git a/tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs b/tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs index 564ade46e..7b13c34da 100644 --- a/tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs +++ b/tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs @@ -636,6 +636,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 --> |