Skip to content

Commit

Permalink
Copy nodemodules using hardlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbrookes committed Jun 2, 2023
1 parent ed28cb1 commit 98a056c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.phar
.phpunit.result.cache
docker-compose.override.yml
.idea/
2 changes: 1 addition & 1 deletion contrib/yarn.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
task('yarn:install', function () {
if (has('previous_release')) {
if (test('[ -d {{previous_release}}/node_modules ]')) {
run('cp -R {{previous_release}}/node_modules {{release_path}}');
run('cp -al {{previous_release}}/node_modules {{release_path}}');
}
}
run("cd {{release_path}} && {{bin/yarn}}");
Expand Down

0 comments on commit 98a056c

Please sign in to comment.