Created
May 24, 2021 07:15
-
-
Save piglovesyou/372a9eda01c397a6320880c0557a17ae to your computer and use it in GitHub Desktop.
Husky in Monorepo, but want to run only in a subdirectory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ $GIT_PREFIX != "frontend*" ]; then | |
exit 0 | |
fi | |
. "$(dirname "$0")/_/husky.sh" | |
cd frontend || exit | |
yarn lint-staged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment