Chore: timeout properly

This commit is contained in:
SukkaW
2023-12-31 00:14:36 +08:00
parent 48b3c4538e
commit 6ed3695e36
2 changed files with 48 additions and 48 deletions

View File

@@ -102,6 +102,9 @@ import type { TaskResult } from './lib/trace-runner';
]);
printStats(stats);
// Finish the build to avoid leaking timer/fetch ref
process.exit(0);
} catch (e) {
console.trace(e);
console.error('Something went wrong!');