diff --git a/index.js b/index.js index edc7a3f..c54c1be 100644 --- a/index.js +++ b/index.js @@ -92,6 +92,9 @@ Promise.resolve() }) .then((results) => { if (argv.watch) { + process.stdin.on('end', () => process.exit(0)); + process.stdin.resume(); + const printMessage = () => printVerbose(chalk.dim('\nWaiting for file changes...')) const watcher = chokidar.watch(input.concat(dependencies(results)), {