Skip to content

Commit

Permalink
Merge pull request #275 from jolicode/yarn
Browse files Browse the repository at this point in the history
Use lock file when install JS packages
  • Loading branch information
pyrech authored Feb 19, 2024
2 parents dbf076f + b310bd5 commit f396157
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions castor.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ function install(): void
docker_compose_run('composer install -n --prefer-dist --optimize-autoloader');
}
if (is_file("{$basePath}/yarn.lock")) {
docker_compose_run('yarn');
docker_compose_run('yarn install --frozen-lockfile');
} elseif (is_file("{$basePath}/package.json")) {
docker_compose_run('npm install');
docker_compose_run('npm ci');
}
if (is_file("{$basePath}/importmap.php")) {
docker_compose_run('bin/console importmap:install');
Expand Down

0 comments on commit f396157

Please sign in to comment.