Update runtime checks and installer behavior
This commit is contained in:
10
src/index.ts
10
src/index.ts
@@ -1,6 +1,12 @@
|
||||
import { main } from "./cli.js";
|
||||
import { ensureSupportedNodeVersion } from "./system/node-version.js";
|
||||
|
||||
main().catch((error) => {
|
||||
async function run(): Promise<void> {
|
||||
ensureSupportedNodeVersion();
|
||||
const { main } = await import("./cli.js");
|
||||
await main();
|
||||
}
|
||||
|
||||
run().catch((error) => {
|
||||
console.error(error instanceof Error ? error.message : String(error));
|
||||
process.exitCode = 1;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user