feat: switched from worker API to fs based

This commit is contained in:
Morten Olsen
2024-01-12 14:14:40 +01:00
parent 6d8e5bf955
commit 5e7461c10b
36 changed files with 419 additions and 58 deletions

View File

@@ -4,10 +4,10 @@ const step = async <T>(message: string, fn: () => Promise<T>): Promise<T> => {
const spinner = ora(message).start();
try {
const result = await fn();
spinner.succeed();
await spinner.succeed();
return result;
} catch (err) {
spinner.fail();
await spinner.fail();
throw err;
}
};