Skip to content

Commit 18864f7

Browse files
committed
fix: exit on 'ctrl+c'
1 parent 688483c commit 18864f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/run

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/usr/bin/env node
22

3+
process.on('SIGINT', () => {
4+
process.exit()
5+
})
6+
37
process.on('unhandledRejection', error => {
48
console.error(error)
59
process.exit(1)

0 commit comments

Comments
 (0)