From 7e98ede3900f3095fd9b583eb45dabf1483ce0e7 Mon Sep 17 00:00:00 2001 From: Mickael Jeanroy Date: Thu, 8 Aug 2019 21:32:04 +0200 Subject: [PATCH] fix: ensure directory is created synchronously when exporting 3rd parties --- src/license-plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/license-plugin.js b/src/license-plugin.js index 46f50b0e..297823b0 100644 --- a/src/license-plugin.js +++ b/src/license-plugin.js @@ -327,7 +327,7 @@ module.exports = class LicensePlugin { this.debug(`exporting third-party summary to ${output}`); // Create directory if it does not already exist. - mkdirp(path.parse(output).dir); + mkdirp.sync(path.parse(output).dir); const includePrivate = thirdParty.includePrivate; const text = _.chain(this._dependencies)