Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Thulin committed Aug 31, 2023
1 parent dfecc18 commit efe04da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand Down

0 comments on commit efe04da

Please sign in to comment.