Currently, we've got multiple ways of linking packages between local repos:
-
npm link
|
cd $WORKDIR/keep-core/solidity |
|
npm link |
|
|
|
cd $WORKDIR/keep-ecdsa/solidity |
|
npm link |
|
|
|
cd $WORKDIR/tbtc/solidity |
|
npm link |
|
|
|
printf "${LOG_START}Updating Keep Dashboard configuration...${LOG_END}" |
|
|
|
cd $WORKDIR/keep-core/solidity/dashboard |
|
npm link @keep-network/keep-core |
|
npm link @keep-network/keep-ecdsa |
|
npm link @keep-network/tbtc |
-
Replacing node_modules content
|
rm -rf keep-ecdsa/solidity/node_modules/@keep-network/keep-core |
|
cp -R keep-core/solidity/. keep-ecdsa/solidity/node_modules/@keep-network/keep-core |
-
Replacing the dependency path in package.json
|
TBTC_DIR="$WORKDIR/tbtc/solidity" jq '.dependencies."@keep-network/tbtc" = env.TBTC_DIR' package.json > package.json.tmp && mv package.json.tmp package.json |
We should be consistent across install scripts (preferably use the first way).
Currently, we've got multiple ways of linking packages between local repos:
npm linklocal-setup/install-keep-dashboard.sh
Lines 37 to 51 in d29abdf
Replacing
node_modulescontentlocal-setup/install-keep-ecdsa.sh
Lines 52 to 53 in d29abdf
Replacing the dependency path in
package.jsonlocal-setup/install-tbtc-dapp.sh
Line 32 in d29abdf
We should be consistent across install scripts (preferably use the first way).