mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-21 11:30:27 -05:00
322f0be197
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Johannes <johannes@formbricks.com>
13 lines
412 B
Bash
Executable File
13 lines
412 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
if command -v pnpm >/dev/null 2>&1; then
|
|
pnpm lint-staged
|
|
elif command -v npm >/dev/null 2>&1; then
|
|
npm exec --yes pnpm@10.32.1 lint-staged
|
|
elif command -v corepack >/dev/null 2>&1; then
|
|
corepack pnpm lint-staged
|
|
else
|
|
echo "Error: pnpm, npm, and corepack are unavailable in this Git hook PATH."
|
|
echo "Install Node.js tooling or update your PATH, then retry the commit."
|
|
exit 127
|
|
fi |