File tree Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Expand file tree Collapse file tree 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`
2121node ./report.mjs --tag=latest
2222node ./report.mjs --tag=datil-dev
2323```
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 99 },
1010 "devDependencies" : {
1111 "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"
1218 }
13- }
19+ }
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- CALLER_DIR= $ ( pwd)
3+ TARGET_DIR= " ${1 :- $ (pwd)} "
44
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 "
77
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
99 LATEST_VERSION=$( npm show $pkg version)
1010 echo " Updating $pkg to version ^$LATEST_VERSION "
1111 npm pkg set " dependencies.$pkg =^$LATEST_VERSION "
1212 done
1313else
14- echo " No package.json found in $CALLER_DIR ."
14+ echo " No package.json found in $TARGET_DIR ."
1515fi
You can’t perform that action at this time.
0 commit comments