From 47226dd7e205885e870e5efe14c1c7f7ddffb48a Mon Sep 17 00:00:00 2001 From: Sebastian Thulin Date: Thu, 31 Aug 2023 14:41:01 +0200 Subject: [PATCH] Fix typo --- build.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.php b/build.php index e01b53c..9ba3645 100644 --- a/build.php +++ b/build.php @@ -19,14 +19,14 @@ } //Run npm if package.json is found -if(file_exists('package.json') && file_exists('package.lock')) { +if(file_exists('package.json') && file_exists('package-lock.json')) { $buildCommands[] = 'npm ci --no-progress --no-audit'; -} elseif(file_exists('package.json') && !file_exists('package.lock')) { +} elseif(file_exists('package.json') && !file_exists('package-lock.json')) { $buildCommands[] = 'npm install --no-progress --no-audit'; } -//Run build if package.lock is found -if(file_exists('package.lock')) { +//Run build if package-lock.json is found +if(file_exists('package-lock.json')) { $buildCommands[] = 'npx --yes browserslist@latest --update-db'; $buildCommands[] = 'npm run build'; }