From eae320c76dd31ad1679d19f926bdd6b4a5304c4c Mon Sep 17 00:00:00 2001 From: thibaud-leclere Date: Mon, 11 May 2026 16:57:12 +0200 Subject: [PATCH] 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 --- .husky/pre-commit | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 13823865..fa8bd90f 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1,5 @@ -npm run pre-commit \ No newline at end of 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