File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,17 @@ pull_all.sh ~/Work/coderabbitai
7
7
# look for package.json files in the subdirectories
8
8
# and run pnpm install in those directories
9
9
find ~ /Work/coderabbitai -name package.json -exec dirname {} \; | while read dir; do
10
- echo " Installing dependencies in $dir "
11
- (cd $dir && pnpm install)
10
+ # if the directory contains a pnpm-lock.yaml file use pnpm
11
+ # otherwise look for a yarn.lock file and use yarn
12
+ # otherwise look for a package-lock.json file and use npm
13
+ if [ -f " $dir /pnpm-lock.yaml" ]; then
14
+ echo " Running pnpm install in $dir "
15
+ (cd $dir && pnpm install)
16
+ elif [ -f " $dir /yarn.lock" ]; then
17
+ echo " Running yarn install in $dir "
18
+ (cd $dir && yarn install)
19
+ elif [ -f " $dir /package-lock.json" ]; then
20
+ echo " Running npm install in $dir "
21
+ (cd $dir && npm install)
22
+ fi
12
23
done
You can’t perform that action at this time.
0 commit comments