From d1275a0f6d26e3084deaa3b4d20b7d8524c6719d Mon Sep 17 00:00:00 2001 From: Bret Comnes Date: Fri, 13 Aug 2021 12:55:36 -0600 Subject: [PATCH] Revert "Merge pull request #23 from mhanberg/mh/exit-on-stdin-closing" This reverts commit ae1f9b7046871e875e15fe22fc2cc8c64c06d2d2, reversing changes made to 7fb869b10cbd227a1a157d643f6ea1e26e32a0b9. See https://github.com/bcomnes/cpx2/pull/23#issuecomment-898649409 # Conflicts: # bin/main.js --- bin/main.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/bin/main.js b/bin/main.js index 28fd175..a29e512 100644 --- a/bin/main.js +++ b/bin/main.js @@ -138,9 +138,6 @@ module.exports = function main(source, outDir, args) { } if (args.watch) { - process.stdin.on("end", () => process.exit(0)) - process.stdin.resume() - if (options.initialCopy) { log() log(`Copy: ${source} --> ${outDir}`)