2022-12-30 16:40:15 +03:00
|
|
|
#!/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
|
|
|
|
2023-07-04 19:43:30 +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
|
|
|
|
|
2023-07-06 15:48:20 +03:00
|
|
|
# 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
|