We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec00d2d commit cd9a41bCopy full SHA for cd9a41b
1 file changed
scripts/run-electron-forge.js
@@ -2,9 +2,16 @@
2
3
import { main } from './run-electron-forge-lib.js';
4
5
+// Node 24 can terminate an otherwise-correct top-level await when Forge keeps its
6
+// work queued on promises without an active handle on Unix runners. Hold the
7
+// process open until the packaging promise settles.
8
+const keepAlive = setInterval(() => {}, 1000);
9
+
10
try {
11
await main();
12
} catch (error) {
13
console.error(`[electron-forge] ${error.message}`);
14
process.exit(1);
15
+} finally {
16
+ clearInterval(keepAlive);
17
}
0 commit comments