We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd350c1 commit 443dee0Copy full SHA for 443dee0
1 file changed
scripts/run-native-target.js
@@ -7,5 +7,8 @@ if (
7
process.env.SKIP_NATIVE_TARGET !== 'true'
8
) {
9
const [target, project] = process.argv.slice(2);
10
- execSync(`nx run ${project}:${target}`, { stdio: 'inherit' });
+ // Detach from the parent nx invocation chain so the recursive-task detector
11
+ // in nx@23+ doesn't treat this sibling task as a recursive call.
12
+ const { NX_INVOCATION_ROOT_PID, ...env } = process.env;
13
+ execSync(`nx run ${project}:${target}`, { stdio: 'inherit', env });
14
}
0 commit comments