From 53ef31e18f3122a9f4155dc623024e8abcd01b51 Mon Sep 17 00:00:00 2001 From: Altan Stalker Date: Wed, 23 Apr 2025 14:39:26 -0400 Subject: [PATCH] fix(core): allow disabling output streaming with NX_STREAM_OUTPUT (#30834) Previously NX_STREAM_OUTPUT only influenced the streaming behavior if it were set to 'true', this ensures the negated case is also handled --- packages/nx/src/tasks-runner/utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/nx/src/tasks-runner/utils.ts b/packages/nx/src/tasks-runner/utils.ts index b99c4d9e3f..5acc7265db 100644 --- a/packages/nx/src/tasks-runner/utils.ts +++ b/packages/nx/src/tasks-runner/utils.ts @@ -558,6 +558,7 @@ export function shouldStreamOutput( // For now, disable streaming output on the JS side when running the TUI if (isTuiEnabled()) return false; if (process.env.NX_STREAM_OUTPUT === 'true') return true; + if (process.env.NX_STREAM_OUTPUT === 'false') return false; if (longRunningTask(task)) return true; if (task.target.project === initiatingProject) return true; return false;