Skip to content

Commit

Permalink
remove mkdirp
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmywarting authored Jan 31, 2023
1 parent 0072510 commit b01389e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/grunt/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ file.minimatch = require('minimatch');
file.findup = require('findup-sync');
var YAML = require('js-yaml');
var iconv = require('iconv-lite');
var mkdirp = require('mkdirp').sync;

// Windows?
var win32 = process.platform === 'win32';
Expand Down Expand Up @@ -180,7 +179,6 @@ file.expandMapping = function(patterns, destBase, options) {
file.mkdir = function(dirpath, mode) {
if (grunt.option('no-write')) { return; }
try {
mkdirp(dirpath, { mode: mode });
fs.mkdirSync(dirpath, { recursive: true, mode })
} catch (e) {
throw grunt.util.error('Unable to create directory "' + dirpath + '" (Error code: ' + e.code + ').', e);
Expand Down

0 comments on commit b01389e

Please sign in to comment.