Skip to content

Commit

Permalink
Fix path references in up-to-date script
Browse files Browse the repository at this point in the history
  • Loading branch information
textbook committed Sep 15, 2024
1 parent 4796873 commit b254949
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/up-to-date.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ if [ $# -gt 0 ]; then
fi

HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT="$HERE/.."

useNpm() {
npm --prefix="$HERE/.." "$@"
npm --prefix="$ROOT" "$@"
}

if [ -z "$(useNpm outdated)" ]; then
Expand All @@ -25,6 +26,6 @@ if [ -z "$(git status --porcelain)" ]; then
fi

useNpm run ship
git add "$HERE"/package{,-lock}.json "$HERE"/*/package.json
git add "$ROOT"/package{,-lock}.json "$ROOT"/*/package.json
git commit --message 'Apply in-range dependency updates'
git push

0 comments on commit b254949

Please sign in to comment.