theatre/.husky/pre-commit
2023-08-10 13:31:54 +02:00

11 lines
341 B
Bash
Executable file

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn lint-staged
yarn workspace @theatre/dataverse run precommit
# if there are unstaged changes in ./packages/dataverse/docs, fail
if ! git diff --quiet --exit-code -- docs; then
echo "Please run 'yarn workspace @theatre/dataverse run doc' and commit the changes to the docs folder"
exit 1
fi