File tree 3 files changed +17
-6
lines changed
3 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -21,3 +21,8 @@ Reports the versions of dependencies starting with `@lit-protocol`
21
21
node ./report.mjs --tag=latest
22
22
node ./report.mjs --tag=datil-dev
23
23
```
24
+
25
+ Update lit sdk on a specific subdirectory
26
+ ```
27
+ ./scripts/update-lit.sh conditional-signing/nodejs
28
+ ```
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"
12
18
}
13
- }
19
+ }
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- CALLER_DIR= $ ( pwd)
3
+ TARGET_DIR= " ${1 :- $ (pwd)} "
4
4
5
- if [ -f " $CALLER_DIR /package.json" ]; then
6
- echo " Updating lit-protocol dependencies in $CALLER_DIR "
5
+ if [ -f " $TARGET_DIR /package.json" ]; then
6
+ echo " Updating lit-protocol dependencies in $TARGET_DIR "
7
7
8
- for pkg in $( jq -r ' .dependencies | keys[] | select(test("^@lit-protocol"))' " $CALLER_DIR /package.json" ) ; do
8
+ for pkg in $( jq -r ' .dependencies | keys[] | select(test("^@lit-protocol"))' " $TARGET_DIR /package.json" ) ; do
9
9
LATEST_VERSION=$( npm show $pkg version)
10
10
echo " Updating $pkg to version ^$LATEST_VERSION "
11
11
npm pkg set " dependencies.$pkg =^$LATEST_VERSION "
12
12
done
13
13
else
14
- echo " No package.json found in $CALLER_DIR ."
14
+ echo " No package.json found in $TARGET_DIR ."
15
15
fi
You can’t perform that action at this time.
0 commit comments