AFFiNE/.husky/pre-commit
2023-07-04 04:54:08 +00:00

15 lines
235 B
Bash
Executable File

#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
# check lockfile is up to date
yarn install --mode=update-lockfile
# lint staged files
yarn exec lint-staged
# type check
yarn typecheck
# circular dependency check
yarn circular