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 e22f5fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,4 +221,7 @@ for (const [key, url] of imgCache.entries()) {
}

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

0 comments on commit e22f5fe

Please sign in to comment.