From 1fcaeb462fe6973438113a7124574e7103746b2c Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Wed, 31 Jan 2024 10:40:38 +0100 Subject: [PATCH] Remove the git folder of the build directory only --- gulpfile.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 55092443..3f16af13 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -65,10 +65,9 @@ function archive(done) { childProcess.execSync('cd build && composer install --no-interaction --no-dev --no-scripts --optimize-autoloader'); - del.sync('**/.DS_Store'); fs.removeSync('build/composer.lock'); del.sync('**/.DS_Store'); - del.sync('**/.git'); + del.sync('build/**/.git'); zip('build', {saveTo: filename}, function (error) { if (error) {