tsc-watch icon indicating copy to clipboard operation
tsc-watch copied to clipboard

How to make tsc-watch exit if COMMAND exits unexpectedly

Open jonaskello opened this issue 2 years ago • 1 comments

For example when COMMAND is node executing a server script and that node process exits unexpectedly, it seems tsc-watch keeps running. Is it possible to somehow make tsc-watch also exit if COMMAND crashes/exits unexpectedly?

jonaskello avatar Dec 18 '22 16:12 jonaskello

That's very interesting. Maybe a --stopOnExit param? Care to do a PR?

gilamran avatar Dec 18 '22 20:12 gilamran