Files
AFFiNE-Mirror/.husky/pre-commit
2023-07-05 02:25:38 +08:00

18 lines
279 B
Bash
Executable File

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