Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Jeffrey Tang <[email protected]>
  • Loading branch information
JeffreyDallas committed Apr 9, 2024
1 parent 5dba2e0 commit 64859b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/init.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class InitCommand extends BaseCommand {
try {
dirs.forEach(dirPath => {
if (!fs.existsSync(dirPath)) {
fs.mkdirSync(dirPath)
fs.mkdirSync(dirPath, { recursive: true })
}
self.logger.debug(`OK: setup directory: ${dirPath}`)
})
Expand Down Expand Up @@ -108,7 +108,7 @@ export class InitCommand extends BaseCommand {

const destDir = path.resolve(path.join(cacheDir, dirName))
if (!fs.existsSync(destDir)) {
fs.mkdirSync(destDir)
fs.mkdirSync(destDir, { recursive: true })
}

fs.cpSync(srcDir, destDir, { recursive: true })
Expand Down

0 comments on commit 64859b5

Please sign in to comment.