Skip to content

Commit d1420bb

Browse files
committed
fix: clean up temp dir on error
1 parent 6dc77dd commit d1420bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ts/lib/commands/precompile.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export default command({
4242
all: true,
4343
});
4444
} catch (e) {
45+
fs.removeSync(outDir);
4546
console.error(`\n${e.all}\n`);
4647
throw e;
4748
}

0 commit comments

Comments
 (0)