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
This commit is contained in:
Altan Stalker 2025-04-23 14:39:26 -04:00 committed by GitHub
parent e70f64b290
commit 53ef31e18f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;