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!
This commit is contained in:
Jonas Jenwald 2020-04-05 12:20:10 +02:00
parent 702fec534d
commit f53e1409f6

View File

@ -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 +