Use Node 14 compatible syntax

This commit is contained in:
Jarred Sumner
2021-12-21 21:56:49 -08:00
parent 873e12c7c6
commit 3f72da9d0b

View File

@@ -42,7 +42,7 @@ if (!USE_EXISTING_PROCESS) {
});
});
process.on("beforeExit", () => {
bunProcess?.kill(0);
bunProcess && bunProcess.kill(0);
});
}
const isDebug = bunExec.endsWith("-debug");