From 494f243d0cf82238c8d242772ee7c52d4416a0dd Mon Sep 17 00:00:00 2001 From: Vlad Filippov Date: Tue, 31 Jan 2023 09:59:02 -0500 Subject: [PATCH] Fix syntax --- lib/grunt/file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/grunt/file.js b/lib/grunt/file.js index b039594e..a517fc0b 100644 --- a/lib/grunt/file.js +++ b/lib/grunt/file.js @@ -179,7 +179,7 @@ file.expandMapping = function(patterns, destBase, options) { file.mkdir = function(dirpath, mode) { if (grunt.option('no-write')) { return; } try { - fs.mkdirSync(dirpath, { recursive: true, mode }) + fs.mkdirSync(dirpath, { recursive: true, mode: mode }); } catch (e) { throw grunt.util.error('Unable to create directory "' + dirpath + '" (Error code: ' + e.code + ').', e); }