diff --git a/packages/nx/src/command-line/run/run.ts b/packages/nx/src/command-line/run/run.ts index 5372aa3925775..29d31c286f1ed 100644 --- a/packages/nx/src/command-line/run/run.ts +++ b/packages/nx/src/command-line/run/run.ts @@ -22,6 +22,7 @@ import { isAsyncIterator, } from '../../utils/async-iterator'; import { getExecutorInformation } from './executor-utils'; +import { PseudoTtyProcess } from 'nx/src/utils/child-process'; export interface Target { project: string; @@ -127,7 +128,7 @@ async function printTargetRunHelpInternal( ) { const command = targetConfig.options.command.split(' ')[0]; await new Promise(() => { - const cp = runCommand(`${command} --help`); + const cp = new PseudoTtyProcess(runCommand(`${command} --help`)); cp.onExit((code) => { process.exit(code); });