diff --git a/src/main.ts b/src/main.ts index 49cb953..6be6bd6 100644 --- a/src/main.ts +++ b/src/main.ts @@ -26,8 +26,10 @@ export async function runMain( throw new CLIError("No version specified", "E_NO_VERSION"); } consola.log(meta.version); + process.exit(0); } else { await runCommand(cmd, { rawArgs }); + process.exit(0); } } catch (error: any) { const isCLIError = error instanceof CLIError;