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>
5 lines
152 B
Text
Executable file
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
|