From b15128facf33e82abc250c4751bb151b04de0e52 Mon Sep 17 00:00:00 2001 From: Sebastian Thulin Date: Fri, 22 Mar 2024 15:22:16 +0100 Subject: [PATCH] fix: reactivate npm build in build.php --- build.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.php b/build.php index 851f05a..3dfb7a3 100644 --- a/build.php +++ b/build.php @@ -23,7 +23,7 @@ } $buildCommands[] = 'composer dump-autoload'; } -/* + //Run npm if package.json is found if(file_exists('package.json') && file_exists('package-lock.json')) { $buildCommands[] = 'npm ci --no-progress --no-audit'; @@ -37,7 +37,7 @@ $buildCommands[] = 'npm run build'; } elseif(file_exists('package-lock.json') && file_exists('gulp.js') && is_array($argv) && in_array('--allow-gulp', $argv)) { $buildCommands[] = 'gulp'; -}*/ +} // Files and directories not suitable for prod to be removed. $removables = [