diff --git a/.changeset/stale-oranges-report.md b/.changeset/stale-oranges-report.md new file mode 100644 index 00000000..f56413f0 --- /dev/null +++ b/.changeset/stale-oranges-report.md @@ -0,0 +1,5 @@ +--- +'@rocket/cli': patch +--- + +fix: warning UnhandledPromiseRejectionWarning not throwing with node < 15 diff --git a/packages/cli/src/cli.js b/packages/cli/src/cli.js index e841b0d5..9ecd5b2f 100755 --- a/packages/cli/src/cli.js +++ b/packages/cli/src/cli.js @@ -4,3 +4,7 @@ import { RocketCli } from './RocketCli.js'; const cli = new RocketCli(); cli.run(); + +process.on('unhandledRejection', up => { + throw up; +});