Compare commits

...

2 Commits

Author SHA1 Message Date
12d31533f5 1.0.40 2020-05-22 00:46:13 +00:00
f9b8a356e4 fix(core): update 2020-05-22 00:46:12 +00:00
3 changed files with 3 additions and 3 deletions

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "@gitzone/tswatch",
"version": "1.0.39",
"version": "1.0.40",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "@gitzone/tswatch",
"version": "1.0.39",
"version": "1.0.40",
"private": false,
"description": "watch typescript projects during development",
"main": "dist/index.js",

View File

@@ -65,7 +65,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);
process.kill(this.currentExecution.childProcess.pid, 'SIGQUIT');
} else {
logger.log('ok', `executing ${this.options.commandToExecute} for the first time`);
}