From 4b3a7c452b4ce0612e5268178633ca95e002e062 Mon Sep 17 00:00:00 2001 From: Jon Edvald Date: Fri, 25 May 2018 03:12:24 +0200 Subject: [PATCH] fix: #85 closing gulp watch didn't close tsc process --- gulpfile.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gulpfile.ts b/gulpfile.ts index 37c3aa23a0..7b3d8ff3e5 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -73,6 +73,9 @@ function die() { process.exit(1) } +process.on("SIGINT", die) +process.on("SIGTERM", die) + gulp.task("add-version-files", (cb) => { const gardenBinPath = join(destDir, "src", "bin", "garden.js") const proc = _spawn("node", [gardenBinPath, "scan", "--output=json"])