diff --git a/bin/release.ts b/bin/release.ts index 246e34006..33bd9400e 100644 --- a/bin/release.ts +++ b/bin/release.ts @@ -2,6 +2,9 @@ // As of v14, Node.js does not exit when there is an unhandled Promise rejection. Convert an // unhandled rejection into an uncaught exception, which does cause Node.js to exit. + +import process from 'node:process' + process.on('unhandledRejection', (err) => { throw err; }); import fs from 'node:fs';