diff --git a/web/install-deps.sh b/web/install-deps.sh index 8f1db937..bee2802b 100755 --- a/web/install-deps.sh +++ b/web/install-deps.sh @@ -4,17 +4,17 @@ BRANCH="$(git branch --show-current)" echo "Main Branch: $BRANCH" -# if [ "$BRANCH" != "dev" ] || [ "$BRANCH" != "master" ]; then +if [ "$BRANCH" != "dev" ] || [ "$BRANCH" != "master" ]; then -# INTERNALS="digit-ui-internals" -# rm -rf $INTERNALS -# git clone -b development https://github.com/egovernments/digit-ui-internals.git $INTERNALS -# cd $INTERNALS && echo "Branch: $(git branch --show-current)" && echo "$(git log -1 --pretty=%B)" && yarn && yarn build && find . -name "node_modules" -type d -prune -print -exec rm -rf '{}' \; -# cd .. + INTERNALS="digit-ui-internals" + rm -rf $INTERNALS + git clone -b development https://github.com/egovernments/digit-ui-internals.git $INTERNALS + cd $INTERNALS && echo "Branch: $(git branch --show-current)" && echo "$(git log -1 --pretty=%B)" && yarn && yarn build && find . -name "node_modules" -type d -prune -print -exec rm -rf '{}' \; + cd .. -# rm -rf node_modules -# rm yarn.lock + rm -rf node_modules + rm yarn.lock -# fi +fi # yarn install