Skip to content

Commit

Permalink
fix: mkdirp round 2 (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmvilas authored Apr 1, 2020
1 parent fe8977a commit 3a76704
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env node

const fs = require('fs');
const path = require('path');
const os = require('os');
const program = require('commander');
const xfs = require('fs.extra');
const packageInfo = require('./package.json');
const Generator = require('./lib/generator');
const Watcher = require('./lib/watcher');
Expand Down Expand Up @@ -67,7 +67,7 @@ if (!asyncapiFile) {
program.help(); // This exits the process
}

fs.mkdir(program.output, { recursive: true }, async err => {
xfs.mkdirp(program.output, async err => {
if (err) return showErrorAndExit(err);
try {
await generate(program.output);
Expand Down

0 comments on commit 3a76704

Please sign in to comment.