Fix script to make directories recursively (#3027) (#3031)

(cherry picked from commit 8beeb93aee)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
This commit is contained in:
Mattermost Build 2024-05-08 18:23:16 +03:00 committed by GitHub
parent 1c9fc719dc
commit a1f5430824
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,6 +9,6 @@ exports.default = async function beforePack(context) {
// So we have to manually create it first
var dir = path.join(context.outDir, context.packager.appInfo.version)
if (!fs.existsSync(dir)){
fs.mkdirSync(dir);
fs.mkdirSync(dir, {recursive: true});
}
};