Skip to content

Commit

Permalink
fix: Use make-dir instead of mkdirp (#3490)
Browse files Browse the repository at this point in the history
* fix: Use make-dir instead of mkdirp

* Use compatible make-dir version
  • Loading branch information
eps1lon committed Apr 30, 2020
1 parent 2634494 commit 0715d90
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/lessc
Expand Up @@ -10981,7 +10981,7 @@ function render() {
if (!existsSync(dir)) {
if (mkdirp === undefined) {
try {
mkdirp = require('mkdirp');
mkdirp = require('make-dir');
}
catch (e) {
mkdirp = null;
Expand Down
2 changes: 1 addition & 1 deletion lib/lessc.js
Expand Up @@ -135,7 +135,7 @@ function render() {
const existsSync = fs.existsSync || path.existsSync;
if (!existsSync(dir)) {
if (mkdirp === undefined) {
try {mkdirp = require('mkdirp');}
try {mkdirp = require('make-dir');}
catch (e) { mkdirp = null; }
}
cmd = mkdirp && mkdirp.sync || fs.mkdirSync;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -43,8 +43,8 @@
"errno": "^0.1.1",
"graceful-fs": "^4.1.2",
"image-size": "~0.5.0",
"make-dir":"^2.1.0",
"mime": "^1.4.1",
"mkdirp": "^0.5.0",
"promise": "^7.1.1",
"request": "^2.83.0",
"source-map": "~0.6.0"
Expand Down

0 comments on commit 0715d90

Please sign in to comment.