Make layered script read the right package.json (#32650)

And hopefully agnostic to its working directory
This commit is contained in:
David Baker 2026-02-26 12:35:57 +01:00 committed by GitHub
parent 82cf0b5bf6
commit 7ddd645f4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,7 +20,7 @@ pnpm install --frozen-lockfile
export PR_ORG=element-hq
export PR_REPO=element-web
js_sdk_dep=`jq -r '.dependencies["matrix-js-sdk"]' < package.json`
js_sdk_dep=$(jq -r '.dependencies["matrix-js-sdk"]' < $(pnpm -w root)/../apps/web/package.json)
# Set up the js-sdk first (unless package.json pins a specific version)
if [ "$js_sdk_dep" = "github:matrix-org/matrix-js-sdk#develop" ]; then