Make layered script read the right package.json

And hopefully agnostic to its working directory
This commit is contained in:
David Baker 2026-02-26 12:13:41 +01:00
parent e605310f75
commit d5285cd75d

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