File tree 2 files changed +13
-13
lines changed
2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 9
9
},
10
10
"devDependencies" : {
11
11
"nx" : " 19.6.3"
12
- },
13
- "dependencies" : {
14
- "@lit-protocol/auth-helpers" : " ^6.4.10" ,
15
- "@lit-protocol/constants" : " ^6.4.10" ,
16
- "@lit-protocol/contracts-sdk" : " ^6.4.10" ,
17
- "@lit-protocol/lit-node-client-nodejs" : " ^6.4.10"
18
12
}
19
13
}
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
TARGET_DIR=" ${1:- $(pwd)} "
4
+ TARGET_DIR=$( realpath " $TARGET_DIR " )
4
5
5
- if [ -f " $TARGET_DIR /package.json" ]; then
6
+ if [ -d " $TARGET_DIR " ]; then
7
+ cd " $TARGET_DIR " || exit
6
8
echo " Updating lit-protocol dependencies in $TARGET_DIR "
7
9
8
- for pkg in $( jq -r ' .dependencies | keys[] | select(test("^@lit-protocol"))' " $TARGET_DIR /package.json" ) ; do
9
- LATEST_VERSION=$( npm show $pkg version)
10
- echo " Updating $pkg to version ^$LATEST_VERSION "
11
- npm pkg set " dependencies.$pkg =^$LATEST_VERSION "
12
- done
10
+ if [ -f " package.json" ]; then
11
+ for pkg in $( jq -r ' .dependencies | keys[] | select(test("^@lit-protocol"))' " package.json" ) ; do
12
+ LATEST_VERSION=$( npm show $pkg version)
13
+ echo " Updating $pkg to version ^$LATEST_VERSION "
14
+ npm pkg set " dependencies.$pkg =^$LATEST_VERSION "
15
+ done
16
+ else
17
+ echo " No package.json found in $TARGET_DIR ."
18
+ fi
13
19
else
14
- echo " No package.json found in $TARGET_DIR ."
20
+ echo " Directory $TARGET_DIR does not exist ."
15
21
fi
You can’t perform that action at this time.
0 commit comments