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