Skip to content

Commit

Permalink
fix: mkdir out readme folder if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioRibera committed Mar 22, 2024
1 parent e983fbf commit 270e348
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,4 +221,6 @@ for (const [key, url] of imgCache.entries()) {
}

console.log(`Writing README.md`)
const outPath = path.join(baseDir, conf.outReadme)
await fs.mkdir(outPath, { recursive: true })
await fs.writeFile(path.join(baseDir, `${conf.outReadme}README.md`), content)

0 comments on commit 270e348

Please sign in to comment.