File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -726,10 +726,10 @@ const resetRepo = ({ targetDir }) => {
726726 } else {
727727 // Unix-like commands
728728 commands = [
729- `find ${ targetDir } -type d -name 'node_modules' -exec rm -rf {} +` ,
730- `find ${ targetDir } -type f -name 'package-lock.json' -delete` ,
731- `find ${ targetDir } -type f -name 'yarn.lock' -delete` ,
732- `find ${ targetDir } -type d -name 'yarn-*' -exec rm -rf {} +`
729+ `find ${ targetDir } -maxdepth 3 - type d -name 'node_modules' -exec rm -rf {} +` ,
730+ `find ${ targetDir } -maxdepth 3 - type f -name 'package-lock.json' -delete` ,
731+ `find ${ targetDir } -maxdepth 3 - type f -name 'yarn.lock' -delete` ,
732+ `find ${ targetDir } -maxdepth 3 - type d -name 'yarn-*' -exec rm -rf {} +`
733733 ] ;
734734 }
735735
You can’t perform that action at this time.
0 commit comments