From 77c2b8c8ccb2714e2df433cbd18fdc597e5c0cc6 Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Sun, 17 Mar 2024 12:09:37 +0100 Subject: [PATCH] Added missing process. --- bin/release.ts | 3 +++ 1 file changed, 3 insertions(+) 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';