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>
This commit is contained in:
thibaud-leclere 2026-05-11 16:57:12 +02:00
parent 8e8b715962
commit eae320c76d

View file

@ -1 +1,5 @@
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