Skip to content

Commit

Permalink
Merge pull request #136 from fritx/fix-cli-mkdir
Browse files Browse the repository at this point in the history
Fix cli init mkdir missing recursive: true and error message not showing
  • Loading branch information
tipiirai authored Jan 3, 2024
2 parents 06e1336 + bbfe79e commit 0be1f4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/nuekit/src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ if (args.help) {
try {
await runCommand(args)
} catch (e) {
if (e.errno != -2) console.info(e)
console.info(e)
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/nuekit/src/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export async function init({ dist, is_dev, esbuild }) {

} catch {
await fs.rmdir(outdir, { recursive: true })
await fs.mkdir(outdir)
await fs.mkdir(outdir, { recursive: true })
await fs.writeFile(latest, '')
}

Expand Down

0 comments on commit 0be1f4e

Please sign in to comment.