Skip to content

Commit f494817

Browse files
parkerzieglerjoakimbeng
andcommitted
#272 Use process.kill with SIGINT to terminate dashboard process.
Co-authored-by: Joakim Carlstein <joakim@beng.se>
1 parent d065e9b commit f494817

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
examples/**/dist-*/*.js
2+
examples/**/dist-*/*.json

dashboard/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ class Dashboard {
8585
}
8686

8787
this.screen.key(["escape", "q", "C-c"], () => {
88-
// eslint-disable-next-line no-process-exit
89-
process.exit(0);
88+
process.kill(process.pid, "SIGINT");
9089
});
9190

9291
this.screen.render();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"cross-spawn": "^6.0.5",
4444
"filesize": "^3.6.1",
4545
"handlebars": "^4.1.0",
46-
"inspectpack": "^4.0.0",
46+
"inspectpack": "^4.2.0",
4747
"most": "^1.7.3",
4848
"neo-blessed": "^0.2.0",
4949
"socket.io": "^2.1.1",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2324,10 +2324,10 @@ inquirer@^3.0.6:
23242324
strip-ansi "^4.0.0"
23252325
through "^2.3.6"
23262326

2327-
inspectpack@^4.0.0:
2328-
version "4.1.2"
2329-
resolved "https://registry.yarnpkg.com/inspectpack/-/inspectpack-4.1.2.tgz#b07dd10f1131c290d2076270470787d61b47097e"
2330-
integrity sha512-bd0iIr5P2xRMtjQQkPnUYJSNa3mUFYER/2eQOPAoXrWBnZXMeFVAgRt/Dny8XVdSkkFoNKhumPjjV9QgTDcVxQ==
2327+
inspectpack@^4.2.0:
2328+
version "4.2.0"
2329+
resolved "https://registry.yarnpkg.com/inspectpack/-/inspectpack-4.2.0.tgz#13ff46a4d8258f7b6e79f4db5ed9935d37470a13"
2330+
integrity sha512-K8GY9cBak4DZg6lJYk22xD1b9i975q5KVqtIv/MNXq8OhuZL3OcXyZcZX/oq7xxFpkR8KW/9KyogE6+zcl48KQ==
23312331
dependencies:
23322332
chalk "^2.4.0"
23332333
io-ts "^1.0.5"

0 commit comments

Comments
 (0)