2023-04-21 16:06:21 +00:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
. "$(dirname -- "$0")/_/husky.sh"
|
|
|
|
|
2023-06-30 12:25:16 +00:00
|
|
|
# if the folder we're in is called bublic, it means we're a submodule in the brivate repo.
|
|
|
|
# We need to grab .envrc to set up yarn correctly.
|
|
|
|
current_file="$(readlink -f "$0")"
|
|
|
|
if [[ $current_file == */bublic/.husky/pre-commit ]]; then
|
|
|
|
source "$(dirname -- "$0")/../../.envrc"
|
|
|
|
fi
|
|
|
|
|
2023-05-04 09:25:31 +00:00
|
|
|
npx lazy run build-api
|
2023-04-21 16:06:21 +00:00
|
|
|
git add packages/*/api-report.md
|
2023-11-13 11:51:22 +00:00
|
|
|
git add packages/*/api/api.json
|
2023-05-04 09:25:31 +00:00
|
|
|
npx lint-staged
|