Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/install-js-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,19 @@ fi

complement_crypto_dir="$(dirname $0)/../../"

corepack enable
echo "Installing matrix-js-sdk @ $js_sdk_src"

if [ "$js_sdk_src" = "." ]; then
# If we install from a local directory, we have to build the js-sdk ourselves.
echo "Building js-sdk @ $(pwd)"
yarn install

PM=$(cat package.json | jq -r '.packageManager')
if [[ $PM == "pnpm@"* ]]; then
pnpm install
else
yarn install
fi

yarn_path="file:$(pwd)"
else
Expand Down
1 change: 1 addition & 0 deletions rebuild_js_sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ then
exit 1
fi

corepack enable
(cd ./internal/api/js/js-sdk && yarn add $1 && yarn install && yarn build)
rm -rf ./internal/api/js/chrome/dist || echo 'no dist directory detected';
cp -r ./internal/api/js/js-sdk/dist/. ./internal/api/js/chrome/dist
Loading