Skip to content

Commit f9a98d8

Browse files
authored
Merge pull request #113 from docsbydoxdox/hotfix/mkdir-recursively
[hotfix] Make directory before rendering output.
2 parents 2900306 + 14ad8bf commit f9a98d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/doxdox-cli/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ const overridePackage = args.flags['-p'] || args.flags['--package'];
137137
});
138138

139139
if (overrideOutput) {
140+
await fs.mkdir(dirname(overrideOutput), { recursive: true });
141+
140142
await fs.writeFile(overrideOutput, output);
141143
} else {
142144
process.stdout.write(output);

0 commit comments

Comments
 (0)