Skip to content

Commit

Permalink
fix: Switch from mkdirp to make-dir (#94)
Browse files Browse the repository at this point in the history
mkdirp has unresolved issues which have been fixed in make-dir, also
make-dir will transparently use the native recursive `fs.mkdirSync`.
  • Loading branch information
coreyfarrell committed May 18, 2019
1 parent 22b8d08 commit b8dace1
Show file tree
Hide file tree
Showing 3 changed files with 178 additions and 57 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const ChildProcess = cp.ChildProcess
const assert = require('assert')
const crypto = require('crypto')
const IS_WINDOWS = require('is-windows')()
const mkdirp = require('mkdirp')
const makeDir = require('make-dir')
const rimraf = require('rimraf')
const path = require('path')
const signalExit = require('signal-exit')
Expand Down Expand Up @@ -127,7 +127,7 @@ function setup(argv, env) {
signalExit(() => rimraf.sync(workingDir))
}

mkdirp.sync(workingDir)
makeDir.sync(workingDir)
workingDir = fs.realpathSync(workingDir)
if (IS_WINDOWS) {
const cmdShim =
Expand Down
Loading

0 comments on commit b8dace1

Please sign in to comment.