Reorder link and install steps

Take advantage of Yarn's preservation of links while installing and set up links
first and install second. This should result in a small speedup since we no
longer install the published SDKs just to replace them on the next line.
This commit is contained in:
J. Ryan Stinnett
2019-03-11 18:08:37 +00:00
parent f6466802b0
commit 337ac2f6a0
4 changed files with 35 additions and 32 deletions
+8 -6
View File
@@ -1,11 +1,13 @@
#!/bin/sh
set -ex
yarn install
scripts/fetchdep.sh matrix-org matrix-js-sdk
rm -r node_modules/matrix-js-sdk || true
ln -s ../matrix-js-sdk node_modules/matrix-js-sdk
cd matrix-js-sdk
scripts/fetchdep.sh matrix-org matrix-js-sdk
pushd matrix-js-sdk
yarn link
yarn install
popd
yarn link matrix-js-sdk
yarn install
cd ..