angular-docs-cn/dev-infra/utils
Paul Gschwendtner 21c2a06811 fix(dev-infra): spawned child processes messing with tty output (#41948)
Currently we have a common utility method for running commands
in a child process. This method pipes all stdout and stderr, but sets
the `stdin` to `inherited`. This seemed to work as expected in terms of
allowing interactive commands being executed, but it messes with the
TTY in Windows (and potentially other platforms) so that colors and
prompts no longer work properly. See attached screenshot.

We fix this by not inheriting the stdin by default; but exposing
a dedicated method for interactive commands. This results in more
readable and obvious code too, so it's worth making this change
regardless of the TTY issues.

PR Close #41948
2021-05-05 13:45:28 -07:00
..
git fix(dev-infra): remove getBaseDir method from GitClient (#41898) 2021-04-30 14:33:59 -07:00
testing refactor(dev-infra): use a singleton for GitClient (#41515) 2021-04-12 16:43:54 -07:00
BUILD.bazel feat(dev-infra): add utility method to GitClient to get latest SemVer tag (#41455) 2021-04-06 10:04:31 -07:00
child-process.ts fix(dev-infra): spawned child processes messing with tty output (#41948) 2021-05-05 13:45:28 -07:00
config.ts fix(dev-infra): remove getBaseDir method from GitClient (#41898) 2021-04-30 14:33:59 -07:00
console.ts build: update `chalk` to version 4.0.1 (#41738) 2021-04-21 17:30:28 -07:00
dry-run.ts feat(dev-infra): prevent `git push` from being called in dryRun mode (#41387) 2021-04-05 08:57:13 -07:00
github.ts refactor(dev-infra): use a singleton for GitClient (#41515) 2021-04-12 16:43:54 -07:00
inquirer-autocomplete-typings.d.ts feat(dev-infra): create a wizard for building commit messages (#38457) 2020-08-18 17:01:14 -07:00
shelljs.ts fix(dev-infra): incorrect token sanitization when no token is specified (#37489) 2020-06-09 08:27:31 -07:00
ts-node.ts style(dev-infra): correct tslint failures in dev-infra directory (#37233) 2020-06-04 12:44:46 -07:00