Skip to content

Commit ed53e82

Browse files
authored
Fix docs folder create (#12)
1 parent 0badb22 commit ed53e82

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/build-prepare.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ async function main() {
7272
// pass
7373
}
7474

75+
if (!fs.existsSync(basePath)) {
76+
fs.mkdirSync(basePath);
77+
}
78+
7579
fs.copyFileSync('./.yfm-docs', path.join(basePath, '.yfm'));
7680
fs.copyFileSync('./.yfmlint', path.join(basePath, '.yfmlint'));
7781

0 commit comments

Comments
 (0)