Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Script to run lerna on all modified packages
- # author: Ivo Tripunovic
- # date: 7. May 2019.
- #
- modified=$(git status --porcelain | egrep 'packages/[a-z-]*/' -o | sort | uniq | sed -e 's/\// /g' -e 's/packages/ /')
- pkgs=""
- while read -r line; do
- if [[ $line =~ $pattern ]]; then
- pkgs="$pkgs --scope $line"
- fi
- done <<< "$modified"
- time lerna run build $pkgs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement