Skip to content

Commit 86ac08b

Browse files
committed
fix: warning UnhandledPromiseRejectionWarning not throwing with node < 15
1 parent 14721d1 commit 86ac08b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/stale-oranges-report.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@rocket/cli': patch
3+
---
4+
5+
fix: warning UnhandledPromiseRejectionWarning not throwing with node < 15

packages/cli/src/cli.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ import { RocketCli } from './RocketCli.js';
44

55
const cli = new RocketCli();
66
cli.run();
7+
8+
process.on('unhandledRejection', up => {
9+
throw up;
10+
});

0 commit comments

Comments
 (0)