Tldraw/.husky/pre-commit

15 wiersze
439 B
Plaintext
Czysty Zwykły widok Historia

2023-04-21 16:06:21 +00:00
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
# 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
npx lazy run build-api
2023-04-21 16:06:21 +00:00
git add packages/*/api-report.md
git add packages/*/api/api.json
npx lint-staged