Skip to content

Commit

Permalink
Backport fix to make SDK depedencies available when npm linking
Browse files Browse the repository at this point in the history
via #1100
  • Loading branch information
MadLittleMods committed May 26, 2023
1 parent f1ec4d4 commit 8034c53
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/sdk/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8034c53

Please sign in to comment.