fix(cli): stream non-TTY render progress (#2458)

This commit is contained in:
Miguel Ángel
2026-07-14 22:13:43 -04:00
committed by GitHub
parent d047d28bb4
commit cada0e7c09
2 changed files with 35 additions and 0 deletions
+2
View File
@@ -12,6 +12,8 @@ export function renderProgress(percent: number, stage: string, row?: number): vo
if (row !== undefined && stdout.isTTY) {
stdout.write(`\x1b[${row};1H\x1b[2K${line}`);
} else if (!stdout.isTTY) {
stdout.write(`${line}\n`);
} else {
stdout.write(`\r\x1b[2K${line}`);
}