Skip to content

Commit 15242e4

Browse files
committed
Simplify Yarn installation by removing node_modules copy from previous_release
1 parent d091b92 commit 15242e4

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

contrib/yarn.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,8 @@
1818
return which('yarn');
1919
});
2020

21-
// In there is a {{previous_release}}, node_modules will be copied from it before installing deps with yarn.
2221
desc('Installs Yarn packages');
2322
task('yarn:install', function () {
24-
if (has('previous_release')) {
25-
if (test('[ -d {{previous_release}}/node_modules ]')) {
26-
run('cp -R {{previous_release}}/node_modules {{release_path}}');
27-
}
28-
}
2923
run('cd {{release_path}} && {{bin/yarn}}');
3024
});
3125

docs/contrib/yarn.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ return which('yarn');
4242
## Tasks
4343

4444
### yarn\:install {#yarn-install}
45-
[Source](https://github.com/deployphp/deployer/blob/master/contrib/yarn.php#L23)
45+
[Source](https://github.com/deployphp/deployer/blob/master/contrib/yarn.php#L22)
4646

4747
Installs Yarn packages.
4848

49-
In there is a {{previous_release}}, node_modules will be copied from it before installing deps with yarn.
49+
5050

5151

5252
### yarn\:build {#yarn-build}
53-
[Source](https://github.com/deployphp/deployer/blob/master/contrib/yarn.php#L33)
53+
[Source](https://github.com/deployphp/deployer/blob/master/contrib/yarn.php#L27)
5454

5555
Runs Yarn build.
5656

0 commit comments

Comments
 (0)