diff --git a/lib/watcher.js b/lib/watcher.js index 7a16667e7..cfc056f5e 100644 --- a/lib/watcher.js +++ b/lib/watcher.js @@ -67,8 +67,7 @@ function watch (patterns, excludes, fileList, usePolling, emitter) { .on('error', log.debug.bind(log)) emitter.on('exit', (done) => { - watcher.close() - done() + watcher.close().then(() => done()) }) return watcher