Remove the git folder of the build directory only

This commit is contained in:
Alex Tselegidis 2024-01-31 10:40:38 +01:00
parent a4d04d9763
commit 1fcaeb462f

View file

@ -65,10 +65,9 @@ function archive(done) {
childProcess.execSync('cd build && composer install --no-interaction --no-dev --no-scripts --optimize-autoloader'); childProcess.execSync('cd build && composer install --no-interaction --no-dev --no-scripts --optimize-autoloader');
del.sync('**/.DS_Store');
fs.removeSync('build/composer.lock'); fs.removeSync('build/composer.lock');
del.sync('**/.DS_Store'); del.sync('**/.DS_Store');
del.sync('**/.git'); del.sync('build/**/.git');
zip('build', {saveTo: filename}, function (error) { zip('build', {saveTo: filename}, function (error) {
if (error) { if (error) {