fix(core): update

This commit is contained in:
2019-10-12 15:07:44 +02:00
parent 72297d2f58
commit b11d03dd41
10 changed files with 549 additions and 648 deletions

View File

@ -26,7 +26,7 @@ export class Watcher {
* start the file
*/
public async start() {
this.setupCleanup();
await this.setupCleanup();
console.log(`Looking at ${this.options.filePathToWatch} for changes`);
this.smartchokWatcher.add([this.options.filePathToWatch]); // __dirname refers to the directory of this very file
await this.smartchokWatcher.start();
@ -84,7 +84,7 @@ export class Watcher {
});
}
}
/**
* stops the watcher
*/