Skip to content

Commit e901d69

Browse files
StalkAltanjaysoo
authored andcommitted
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
1 parent cbb1958 commit e901d69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/nx/src/tasks-runner/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,7 @@ export function shouldStreamOutput(
541541
initiatingProject: string | null
542542
): boolean {
543543
if (process.env.NX_STREAM_OUTPUT === 'true') return true;
544+
if (process.env.NX_STREAM_OUTPUT === 'false') return false;
544545
if (longRunningTask(task)) return true;
545546
if (task.target.project === initiatingProject) return true;
546547
return false;

0 commit comments

Comments
 (0)