From 0632dc896f7d814f8133c34ba61a13c956f610e7 Mon Sep 17 00:00:00 2001 From: Gar Date: Thu, 31 Mar 2022 09:42:24 -0700 Subject: fix: do not export npm_config_include_workspace_root --- lib/utils/config/definitions.js | 1 + tap-snapshots/test/lib/utils/config/definitions.js.test.cjs | 2 ++ tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs | 2 ++ 3 files changed, 5 insertions(+) diff --git a/lib/utils/config/definitions.js b/lib/utils/config/definitions.js index efc1f72a0..51298ed8a 100644 --- a/lib/utils/config/definitions.js +++ b/lib/utils/config/definitions.js @@ -938,6 +938,7 @@ define('include-staged', { define('include-workspace-root', { default: false, type: Boolean, + envExport: false, description: ` Include the workspace root when workspaces are enabled for a command. 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 d7c430802..17f817d9c 100644 --- a/tap-snapshots/test/lib/utils/config/definitions.js.test.cjs +++ b/tap-snapshots/test/lib/utils/config/definitions.js.test.cjs @@ -848,6 +848,8 @@ Include the workspace root when workspaces are enabled for a command. When false, specifying individual workspaces via the \`workspace\` config, or all workspaces via the \`workspaces\` flag, will cause npm to operate only on the specified workspaces, and not on the root project. + +This value is not exported to the environment for child processes. ` exports[`test/lib/utils/config/definitions.js TAP > config description for init-author-email 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 2647bc31b..9ac0c063c 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 @@ -693,6 +693,8 @@ When false, specifying individual workspaces via the \`workspace\` config, or all workspaces via the \`workspaces\` flag, will cause npm to operate only on the specified workspaces, and not on the root project. +This value is not exported to the environment for child processes. + -- cgit v1.2.3