From c94d89fa8a9430f07c0f8f477227e3dd7ef2f632 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Mon, 13 May 2019 18:54:05 +0200 Subject: [PATCH] fix(core): update --- ts/tswatch.classes.tswatch.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ts/tswatch.classes.tswatch.ts b/ts/tswatch.classes.tswatch.ts index ab8d08e..7154037 100644 --- a/ts/tswatch.classes.tswatch.ts +++ b/ts/tswatch.classes.tswatch.ts @@ -18,20 +18,18 @@ export class TsWatch { public async start() { switch (this.watchmode) { case 'test': - const tsWatchInstanceTest = new Watcher({ + this.watcherMap.add(new Watcher({ filePathToWatch: paths.cwd, commandToExecute: 'npm run test2', timeout: null - }); - this.watcherMap.add(tsWatchInstanceTest); + })); break; case 'gitzone_npm': - const tsWatchInstanceGitzoneNpm = new Watcher({ + this.watcherMap.add(new Watcher({ filePathToWatch: paths.cwd, commandToExecute: 'npm run test', timeout: null - }); - this.watcherMap.add(tsWatchInstanceGitzoneNpm); + })); break; case 'gitzone_website': // server directory