Skip to content

Instantly share code, notes, and snippets.

@osadan
Created March 21, 2022 09:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save osadan/03a5066265218f55d014cd2ddb4ad10f to your computer and use it in GitHub Desktop.
Save osadan/03a5066265218f55d014cd2ddb4ad10f to your computer and use it in GitHub Desktop.
detect chnaged folders from git commi
BRANCH_POINT="$(git merge-base $(git rev-parse --abbrev-ref HEAD)
$(git describe origin/master))"
changedPackages="$(npx lerna ls -p --since $BRANCH_POINT --include-dependents)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment