@travetto/base
Advanced tools
Comparing version 0.0.89 to 0.0.90
@@ -22,3 +22,3 @@ { | ||
"scripts": {}, | ||
"version": "0.0.89" | ||
"version": "0.0.90" | ||
} |
@@ -76,7 +76,8 @@ import * as util from 'util'; | ||
add(handlers: (string | Handler)[]) { | ||
this.findHandlers = this.findHandlers.concat(handlers.map(x => { | ||
const finalHandlers = handlers.map(x => { | ||
return typeof x === 'string' ? { testFile: (rel: string) => rel === x } : x; | ||
})); | ||
}); | ||
this.findHandlers = this.findHandlers.concat(finalHandlers); | ||
for (const entry of bulkFindSync(this.findHandlers, this.options.cwd)) { | ||
for (const entry of bulkFindSync(finalHandlers, this.options.cwd)) { | ||
if (!this.watched.has(entry.file)) { | ||
@@ -176,2 +177,3 @@ if (this.pending) { | ||
if (!this.suppress) { | ||
console.log('Watch Event', type, payload) | ||
this.emit(type, payload); | ||
@@ -178,0 +180,0 @@ } |
32316
962