mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-11 06:30:03 +00:00
refactor(cli): centralize process lifecycle
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { failCommand } from "../utils/commandResult.js";
|
||||
import {
|
||||
copyFileSync,
|
||||
existsSync,
|
||||
@@ -688,7 +689,7 @@ export default defineCommand({
|
||||
} else {
|
||||
console.error(`\n${c.error("✗")} Grade compare failed: ${message}`);
|
||||
}
|
||||
process.exit(1);
|
||||
failCommand();
|
||||
} finally {
|
||||
if (preparedDir) {
|
||||
rmSync(preparedDir, { recursive: true, force: true });
|
||||
|
||||
Reference in New Issue
Block a user