AFFiNE/.husky/pre-commit

24 lines
418 B
Plaintext
Raw Normal View History

#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
2023-04-04 02:13:43 +03:00
# check lockfile is up to date
2023-07-04 20:42:14 +03:00
yarn install --mode=skip-build --inline-builds --immutable
2023-04-04 02:13:43 +03:00
# build infra code
yarn -T run build:infra
2023-07-04 20:42:14 +03:00
# generate prisma client type
yarn workspace @affine/server prisma generate
# generate i18n
yarn i18n-codegen gen
2023-04-04 02:13:43 +03:00
# lint staged files
2023-03-20 10:05:02 +03:00
yarn exec lint-staged
2023-06-28 14:24:37 +03:00
# type check
yarn typecheck
2023-07-04 07:54:08 +03:00
# circular dependency check
yarn circular