2021-11-02 11:53:27 +01:00
|
|
|
#!/bin/sh
|
2022-04-29 15:01:02 +02:00
|
|
|
|
|
|
|
|
# Ignore husky hooks if no frontend code has been changed
|
|
|
|
|
git diff --cached --name-only | grep -v --quiet "^pkg/" || exit 0
|
|
|
|
|
|
2021-11-02 11:53:27 +01:00
|
|
|
. "$(dirname "$0")/_/husky.sh"
|
|
|
|
|
|
|
|
|
|
yarn run precommit
|