next.js
501f347b - Better support the CLI spinner when running the TSC CLI (#95753)

Commit
6 days ago
Better support the CLI spinner when running the TSC CLI (#95753) Currently if you enable `useTscCli` we render a `Running Typescript ...` but then never remove it. This is simply because our normal approach of pausing/resuming the spinner doesn't work with the subprocess. Instead run the spinner in the normal way and stop it as soon as the subprocess produces any output. TSC produces all output in a small sequence of writes at the end, so this works as expected. If it changes to start streaming data this will also work but the spinner will never restart, but this is fine.
Author
Parents
Loading