Skip to content

Commit

Permalink
chore: bump mk-dirs version
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Sep 18, 2020
1 parent 0770626 commit cae451d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { join, resolve } = require('path');
const { writeFileSync } = require('fs');
const mkdirs = require('mk-dirs');
const { mkdir } = require('mk-dirs');
const $ = require('./lib/util');

async function parse(opts) {
Expand Down Expand Up @@ -92,7 +92,7 @@ exports.new = async function (opts={}) {
let dir = resolve(opts.cwd || '.', opts.dir);
let file = join(dir, filename);

await mkdirs(dir).then(() => {
await mkdir(dir).then(() => {
let str = 'exports.up = async client => {\n\t// <insert magic here>\n};\n\n';
str += 'exports.down = async client => {\n\t// just in case...\n};\n';
writeFileSync(file, str);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"dependencies": {
"kleur": "^3.0.3",
"mk-dirs": "^2.0.0",
"mk-dirs": "^3.0.0",
"sade": "^1.7.0",
"totalist": "^2.0.0"
},
Expand Down

0 comments on commit cae451d

Please sign in to comment.