From 9a0b70de6976a6a636ebb781bed2b340d74d23c4 Mon Sep 17 00:00:00 2001 From: Craigory Coppola Date: Fri, 19 Apr 2024 14:34:02 -0400 Subject: [PATCH] fix(core): disable pty on windows until stable (#22910) --- packages/nx/src/tasks-runner/pseudo-terminal.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/nx/src/tasks-runner/pseudo-terminal.ts b/packages/nx/src/tasks-runner/pseudo-terminal.ts index 974eacdd1b79c..db46e46a27110 100644 --- a/packages/nx/src/tasks-runner/pseudo-terminal.ts +++ b/packages/nx/src/tasks-runner/pseudo-terminal.ts @@ -196,6 +196,13 @@ function supportedPtyPlatform() { return true; } + // TODO: Re-enable Windows support when it's stable + // Currently, there's an issue with control chars. + // See: https://github.com/nrwl/nx/issues/22358 + if (process.env.NX_WINDOWS_PTY_SUPPORT !== 'true') { + return false; + } + let windowsVersion = os.release().split('.'); let windowsBuild = windowsVersion[2];