From f53e1409f659a3c829257fc45c9a39c669c51be6 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sun, 5 Apr 2020 12:20:10 +0200 Subject: [PATCH] Update the "gulp jsdoc" task to account for API changes in the `mkdirp` package (PR 11772 follow-up) I completely overlooked the fact that we had *one* occurrence of an asynchronous `mkdirp` call in the gulpfile, which thus breaks since the package now uses Promises rather than a callback function; sorry about that! --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 5ccc6f40b..ed933b9e1 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1139,7 +1139,7 @@ gulp.task("jsdoc", function(done) { var JSDOC_FILES = ["src/doc_helper.js", "src/display/api.js"]; rimraf(JSDOC_BUILD_DIR, function() { - mkdirp(JSDOC_BUILD_DIR, function() { + mkdirp(JSDOC_BUILD_DIR).then(function() { var command = '"node_modules/.bin/jsdoc" -d ' + JSDOC_BUILD_DIR +