api-client/.husky/pre-commit
thibaud-leclere eae320c76d chore: run pre-commit hook in Docker when pnpm is unavailable
Falls back to api-client-tools container (node_base stage) so lint and
typecheck always run regardless of the host environment.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-11 16:57:12 +02:00

5 lines
152 B
Text
Executable file

if command -v pnpm > /dev/null 2>&1; then
npm run pre-commit
else
docker run --rm -v "$(pwd):/repo" -w /repo api-client-tools npm run pre-commit
fi