Skip to content

Commit 68b19ec

Browse files
authored
feat: automatically create output directory with --sea option (#182)
* feat: automatically create output directory with `--sea` option * refactor: use named imported dirname function
1 parent cd7a545 commit 68b19ec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/sea.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,7 @@ async function bake(
308308
);
309309

310310
if (!(await exists(dirname(outPath)))) {
311-
log.error(`Output directory "${dirname(outPath)}" does not exist`);
312-
return;
311+
await mkdir(dirname(outPath), { recursive: true });
313312
}
314313
// check if executable_path exists
315314
if (await exists(outPath)) {

0 commit comments

Comments
 (0)