link them in install-sdk

pull/488/head
mvhenten 2018-03-28 12:56:53 +00:00
rodzic fc8f90e8e9
commit ee7e2c7ad0
1 zmienionych plików z 16 dodań i 5 usunięć

Wyświetl plik

@ -51,25 +51,36 @@ resetColor=$'\e[0m'
updateNodeModules() {
echo "${magenta}--- Running npm install --------------------------------------------${resetColor}"
"$NPM" install --production
for i in $(git show HEAD:node_modules/); do
if [ "$i" != tree ] && [ "$i" != "HEAD:node_modules/" ]; then
[ -d node_modules/$i ] || git checkout HEAD -- node_modules/$i;
fi
done
for pkg in kaefer smith; do
pushd packages/$pkg
npm link --production
popd
pushd node_modules
rm -rf $pkg
npm link $pkg
popd
done
rm -f package-lock.json
echo "${magenta}--------------------------------------------------------------------${resetColor}"
}
updateCore() {
if [ "$NO_PULL" ]; then
if [ "$NO_PULL" ]; then
return 0;
fi
# without this git merge fails on windows
mv ./scripts/install-sdk.sh './scripts/.#install-sdk-tmp.sh'
rm -f ./scripts/.install-sdk-tmp.sh
rm -f ./scripts/.install-sdk-tmp.sh
cp './scripts/.#install-sdk-tmp.sh' ./scripts/install-sdk.sh
git checkout -- ./scripts/install-sdk.sh