From 8034c53a2ed440a732ce387fdb8a02ac7b0ed96c Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Fri, 26 May 2023 18:23:21 -0500 Subject: [PATCH] Backport fix to make SDK depedencies available when npm linking via https://github.com/vector-im/hydrogen-web/pull/1100 --- scripts/sdk/build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/sdk/build.sh b/scripts/sdk/build.sh index 5e1632d3ee..e72d7dbfa8 100755 --- a/scripts/sdk/build.sh +++ b/scripts/sdk/build.sh @@ -12,6 +12,11 @@ yarn run vite build -c vite.sdk-assets-config.js yarn run vite build -c vite.sdk-lib-config.js yarn tsc -p tsconfig-declaration.json ./scripts/sdk/create-manifest.js ./target/package.json +pushd target/ +# Make sure the dependencies are available for any consuming project that uses +# `npm link hydrogen-view-sdk` +yarn install --no-lockfile +popd mkdir target/paths # this doesn't work, the ?url imports need to be in the consuming project, so disable for now # ./scripts/sdk/transform-paths.js ./src/platform/web/sdk/paths/vite.js ./target/paths/vite.js