Skip to content

Commit

Permalink
ignore scoped packages
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Feb 29, 2020
1 parent b146321 commit a5ed1e7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,16 +159,19 @@ links() {
# TODO handle scoped modules
for DIR in $(find $MODULES_DIR/ -maxdepth 1 -type d -not -name "node_modules" -not -name ".bin" -exec basename {} \; | sort -t '\0' -n)
do
VERSION=$(jq -r '.version' $MODULES_DIR/$DIR/package.json)
if [[ ! -z "$VERSION" ]]; then
if [[ -f $MODULES_DIR/$DIR/package.json ]]; then
VERSION=$(jq -r '.version' $MODULES_DIR/$DIR/package.json)
links $DIR $VERSION
fi
done

# TODO handle scoped modules
for DIR in $(find $ADDON_TMP/redmatic/var/node_modules/ -maxdepth 1 -type d -not -name "node_modules" -not -name ".bin" -exec basename {} \; | sort -t '\0' -n)
do
VERSION=$(jq -r '.version' $ADDON_TMP/redmatic/var/node_modules/$DIR/package.json)
links $DIR $VERSION
if [[ -f $ADDON_TMP/redmatic/var/node_modules/$DIR/package.json ]]; then
VERSION=$(jq -r '.version' $ADDON_TMP/redmatic/var/node_modules/$DIR/package.json)
links $DIR $VERSION
fi
done

echo -e "\n\n[Travis Build #$TRAVIS_BUILD_NUMBER](https://travis-ci.org/rdmtc/RedMatic/builds/$TRAVIS_BUILD_ID)" >> CHANGELOG.md
Expand Down

0 comments on commit a5ed1e7

Please sign in to comment.