Skip to content

Commit

Permalink
Use and anchor mkdirp >=1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
longhotsummer authored and jcoglan committed Aug 3, 2020
1 parent f7b1f4d commit fc11abe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/canopy
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ try {
var name = names[index];
if (!name) return;

mkdirp(path.dirname(name), function(error) {
mkdirp(path.dirname(name)).then(function() {
var content = builder.comment(comment).join('\n') + '\n\n' + parser[name];
fs.writeFileSync(name, content);
write(index + 1);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
, "main" : "./lib/canopy.js"
, "bin" : { "canopy": "./bin/canopy" }

, "dependencies" : { "mkdirp": "", "nopt": "" }
, "dependencies" : { "mkdirp": ">=1.0.0", "nopt": "" }
, "devDependencies" : { "benchmark": "", "jstest": "", "pegjs": "" }

, "scripts" : { "test": "make test" }
Expand Down

0 comments on commit fc11abe

Please sign in to comment.