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:
parent
8e8b715962
commit
eae320c76d
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue