()
| 12 | } |
| 13 | |
| 14 | export function isTTY(): boolean { |
| 15 | // If we force TTY, we always return true. |
| 16 | const force = process.env['NG_FORCE_TTY']; |
| 17 | if (force !== undefined) { |
| 18 | return _isTruthy(force); |
| 19 | } |
| 20 | |
| 21 | return !!process.stdout.isTTY && !_isTruthy(process.env['CI']); |
| 22 | } |