fix(core): update

This commit is contained in:
2020-05-22 07:19:39 +00:00
parent 073685e683
commit f04833d5b5
3 changed files with 192 additions and 64 deletions

View File

@ -50,7 +50,7 @@ export class Watcher {
if (typeof this.options.commandToExecute === 'string') {
if (this.currentExecution) {
logger.log('ok', `reexecuting ${this.options.commandToExecute}`);
process.kill(this.currentExecution.childProcess.pid, 'SIGINT');
this.currentExecution.kill();
} else {
logger.log('ok', `executing ${this.options.commandToExecute} for the first time`);
}