Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit d49fbef

Browse files
authored
Merge pull request #162 from leebenson/v4.4
v4.4
2 parents b6a4d8c + f99394d commit d49fbef

File tree

5 files changed

+4348
-3991
lines changed

5 files changed

+4348
-3991
lines changed

index.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,15 @@ import * as fs from "fs";
55
require("dotenv").config();
66

77
// Catch CTRL/CMD+C interrupts cleanly
8-
process.on("SIGINT", () => {
9-
process.exit(0);
10-
});
8+
const signals: NodeJS.Signals[] = [
9+
"SIGHUP",
10+
"SIGINT",
11+
"SIGQUIT",
12+
"SIGABRT",
13+
"SIGTERM"
14+
];
15+
16+
signals.forEach(s => process.on(s, () => process.exit(0)));
1117

1218
// Check that we have a specified Webpack runner
1319
if (!process.env.RUNNER) {

0 commit comments

Comments
 (0)