From dc7f5d8e6685b6a11526dc29e7d8e31caa3496d4 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Mon, 12 Sep 2022 14:06:54 +0300 Subject: [PATCH] fix grunt zip --- Gruntfile.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index c516673a68..fcc198f259 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -396,7 +396,7 @@ module.exports = grunt => { cp.execSync("composer run-script setConfigParams", {stdio: 'ignore'}); }); - grunt.registerTask('zip', () => { + grunt.registerTask('zip', function () { // Don't change to arrow-function. const archiver = require('archiver'); let resolve = this.async(); @@ -425,8 +425,9 @@ module.exports = grunt => { archive .directory(currentPath + '/build/' + folder, folder) - .pipe(zipOutput) - .finalize(); + .pipe(zipOutput); + + archive.finalize(); }); grunt.registerTask('npm-install', () => {