Skip to content

Commit

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

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

mkdirp(program.output, async err => {
fs.mkdir(program.output, { recursive: true }, async err => {
if (err) return showErrorAndExit(err);
try {
await generate(program.output);
Expand Down
5 changes: 0 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
"klaw-sync": "^6.0.0",
"markdown-it": "^8.4.1",
"minimatch": "^3.0.4",
"mkdirp": "^1.0.3",
"npmi": "^4.0.0",
"nunjucks": "^3.2.0",
"simple-git": "^1.131.0"
Expand Down

0 comments on commit 0180994

Please sign in to comment.