Skip to content

Commit

Permalink
fix: remove gluegun's unhandledRejection handler
Browse files Browse the repository at this point in the history
So when you Ctrl+C it doesn't show node backtraces, like a sane person.
  • Loading branch information
soedirgo committed Apr 1, 2021
1 parent 75f71b6 commit 1d73e9d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@

import { build } from 'gluegun'

process.removeAllListeners('unhandledRejection')
process.on('unhandledRejection', () => {
process.exit(1)
})

build('supabase').src(__dirname).create().run()

0 comments on commit 1d73e9d

Please sign in to comment.