tldraw/.husky/pre-commit

12 lines
289 B
Text
Raw Normal View History

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", set YARN_RC_FILENAME:
if [ "$(basename "$(pwd)")" = "bublic" ]; then
export YARN_RC_FILENAME=.yarnrc-private.yml
fi
npx lazy run build-api
2023-04-21 16:06:21 +00:00
git add packages/*/api-report.md
npx lint-staged