File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed 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"
1812 }
1913}
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33TARGET_DIR=" ${1:- $(pwd)} "
4+ TARGET_DIR=$( realpath " $TARGET_DIR " )
45
5- if [ -f " $TARGET_DIR /package.json" ]; then
6+ if [ -d " $TARGET_DIR " ]; then
7+ cd " $TARGET_DIR " || exit
68 echo " Updating lit-protocol dependencies in $TARGET_DIR "
79
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
1319else
14- echo " No package.json found in $TARGET_DIR ."
20+ echo " Directory $TARGET_DIR does not exist ."
1521fi
You can’t perform that action at this time.
0 commit comments