Skip to content

Commit

Permalink
fix() use SIGINT by default
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Sep 25, 2019
1 parent e2fc026 commit 627fe56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions actions/start.action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ export class StartAction extends BuildAction {
let childProcessRef: any;
process.on(
'exit',
code => childProcessRef && killProcess(childProcessRef.pid),
code => childProcessRef && killProcess(childProcessRef.pid, 'SIGINT'),
);

return () => {
if (childProcessRef) {
childProcessRef.stdin && childProcessRef.stdin.pause();
killProcess(childProcessRef.pid);
killProcess(childProcessRef.pid, 'SIGINT');
}
const sourceRoot = getValueOrDefault(
configuration,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestjs/cli",
"version": "6.8.4",
"version": "6.8.5",
"description": "Nest - modern, fast, powerful node.js web framework (@cli)",
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit 627fe56

Please sign in to comment.