Skip to content

Commit

Permalink
chore: add removal of sdk-install-modal-web dist directory
Browse files Browse the repository at this point in the history
Included the sdk-install-modal-web dist directory in the removal process to ensure a clean state before copying new files.
  • Loading branch information
abretonc7s committed Nov 20, 2024
1 parent dbc1cc1 commit db18448
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/examples/react-demo/sdk-copy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ echo "########### START REPLACING SDK_COMMUNICATION_LAYER #########"
cd $DAPP_DIR
echo "Hack Metamask sdk && sdk-communication-layer packages..."
## hack to debug to latest unpublished version of the sdk
rm -rf node_modules/@metamask/sdk-communication-layer/dist node_modules/@metamask/sdk/dist node_modules/@metamask/sdk-react/dist
rm -rf node_modules/@metamask/sdk-communication-layer/dist node_modules/@metamask/sdk/dist node_modules/@metamask/sdk-react/dist node_modules/@metamask/sdk-install-modal-web/dist
cp -rf $COMM_LAYER_DIR/dist node_modules/@metamask/sdk-communication-layer/dist
cp -rf $COMM_LAYER_DIR/package.json node_modules/@metamask/sdk-communication-layer/package.json

Expand All @@ -36,6 +36,7 @@ cp -rf $SDK_REACT_DIR/package.json node_modules/@metamask/sdk-react/package.json
cp -rf $SDK_INSTALL_MODAL_WEB_DIR/dist node_modules/@metamask/sdk-install-modal-web/dist
cp -rf $SDK_INSTALL_MODAL_WEB_DIR/package.json node_modules/@metamask/sdk-install-modal-web/package.json


# Remove vite cache
rm -rf node_modules/.vite

echo "All done."

0 comments on commit db18448

Please sign in to comment.