fix(core): update

This commit is contained in:
2019-05-08 11:16:24 +02:00
parent 3a8513d3a0
commit 7ce6245286
11 changed files with 68 additions and 34 deletions

View File

@@ -31,7 +31,7 @@ export class TsWatch {
const changeObservable = await this.watcher.getObservableFor('change');
changeObservable.subscribe(() => {
this.updateCurrentExecution();
})
});
this.updateCurrentExecution();
}
@@ -39,7 +39,9 @@ export class TsWatch {
if (this.currentExecution) {
process.kill(-this.currentExecution.childProcess.pid);
}
this.currentExecution = await this.smartshellInstance.execStreaming(this.options.commandToExecute);
this.currentExecution = await this.smartshellInstance.execStreaming(
this.options.commandToExecute
);
this.currentExecution = null;
}