Added missing process.

This commit is contained in:
SamTV12345 2024-03-17 12:09:37 +01:00
parent 709bdd7888
commit 77c2b8c8cc

View file

@ -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';