Skip to content

Commit

Permalink
fix: use make-dir instead of mkdirp (#544)
Browse files Browse the repository at this point in the history
Remove deprecated mkdirp module.
  • Loading branch information
pustovalov committed Apr 5, 2020
1 parent 7e5adc7 commit 5a9c33b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/webpack-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"webpack": ">=4.6.0"
},
"dependencies": {
"mkdirp": "^0.5.1"
"make-dir": "^3.0.2"
}
}
4 changes: 2 additions & 2 deletions packages/webpack-plugin/src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const nodePath = require('path')
const fs = require('fs')
const mkdirp = require('mkdirp')
const makeDir = require('make-dir')

class LoadablePlugin {
constructor({
Expand Down Expand Up @@ -58,7 +58,7 @@ class LoadablePlugin {

try {
if (!fs.existsSync(outputFolder)) {
mkdirp.sync(outputFolder)
makeDir.sync(outputFolder)
}
} catch (err) {
if (err.code !== 'EEXIST') {
Expand Down

0 comments on commit 5a9c33b

Please sign in to comment.