tsc-watch: Does not shutdown completely when run from the CLI

After running tsc-watch, on its own, from the CLI and trying to stop it, I’m always requiring an additional Ctrl+C.

Also, when used alongside concurrently, the SIGINT and SIGTERM is not being passed to the code in the onSuccess argument.

How do I tell tsc-watch, when run from the CLI, it should end the process and not remain hanging?

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 2
  • Comments: 27 (11 by maintainers)

Most upvoted comments

Looks like something in most of the projects we use here in work is holding the process. I tried to create a new project but couldn’t reproduce yet. when i find it i will post here again.

We’ve had to move away from tsc-watch due to the number of loose process issues where exiting the process doesn’t kill the running subprocess, so we have to manually kill the port after the fact. Also it sometimes just stops compiling at all.