feat(tsc): allow the --appendCommand
option to be added in --watch
mode
#55599
Labels
Duplicate
An existing issue was already created
π Search Terms
β Viability Checklist
β Suggestion
After compiling in
--watch
mode,tsc
should be able to pass the baton to the next command (probably in a child process) that the user passes with the--appendCommand
option. Aftertsc
detects a change in the source files, it should terminate the process in which it started the command from the--appendCommand
option. After that, it should make a new iteration of the pair:"compile -> execute the command from the
--appendCommand
option".Of course, the output from the
--appendCommand
should be displayed below thetsc
output. On error,tsc
should not run the command with--appendCommand
.π Motivating Example
Currently, users have to use two terminals: one for
tsc --watch
and one fornodemon dist/main.js
. Yes, of course I know about pairnodemon
+ts-node
, buttsc
with--appendCommand
can work better.π» Use Cases
Users will be able to get native compiler support with native Node.js operation in one terminal:
tsc -b --watch --appendCommand 'node dist/main.js'
The text was updated successfully, but these errors were encountered: