Skip to content

Commit

Permalink
Switch to make-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 12, 2017
1 parent eaf1ade commit 364606e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const _ = require('lodash');
const findUp = require('find-up');
const readPkgUp = require('read-pkg-up');
const chalk = require('chalk');
const mkdirp = require('mkdirp');
const makeDir = require('make-dir');
const minimist = require('minimist');
const runAsync = require('run-async');
const through = require('through2');
Expand Down Expand Up @@ -568,7 +568,7 @@ class Generator extends EventEmitter {
this._destinationRoot = path.resolve(rootPath);

if (!fs.existsSync(rootPath)) {
mkdirp.sync(rootPath);
makeDir.sync(rootPath);
}

process.chdir(rootPath);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
"github-username": "^4.0.0",
"istextorbinary": "^2.1.0",
"lodash": "^4.11.1",
"make-dir": "^1.0.0",
"mem-fs-editor": "^3.0.0",
"minimist": "^1.2.0",
"mkdirp": "^0.5.0",
"pretty-bytes": "^4.0.2",
"read-chunk": "^2.0.0",
"read-pkg-up": "^2.0.0",
Expand Down
4 changes: 2 additions & 2 deletions test/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const LF = require('os').EOL;
const path = require('path');
const _ = require('lodash');
const sinon = require('sinon');
const mkdirp = require('mkdirp');
const makeDir = require('make-dir');
const mockery = require('mockery');
const rimraf = require('rimraf');
const through = require('through2');
Expand All @@ -30,7 +30,7 @@ describe('Base', () => {

beforeEach(function () {
this.env = yeoman.createEnv([], {'skip-install': true}, new TestAdapter());
mkdirp.sync(resolveddir);
makeDir.sync(resolveddir);
this.Dummy = class extends Base {};
this.Dummy.prototype.exec = sinon.spy();

Expand Down
4 changes: 2 additions & 2 deletions test/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const assert = require('assert');
const os = require('os');
const path = require('path');
const mkdirp = require('mkdirp');
const makeDir = require('make-dir');
const nock = require('nock');
const proxyquire = require('proxyquire');
const rimraf = require('rimraf');
Expand All @@ -16,7 +16,7 @@ describe('Base#user', () => {
before(function () {
this.prevCwd = process.cwd();
this.tmp = tmpdir;
mkdirp.sync(path.join(tmpdir, 'subdir'));
makeDir.sync(path.join(tmpdir, 'subdir'));
process.chdir(tmpdir);
shell.exec('git init --quiet');
shell.exec('git config --local user.name Yeoman');
Expand Down

0 comments on commit 364606e

Please sign in to comment.