chore: pre-commit script detect package manager

This commit is contained in:
cyrus28214 2025-09-08 14:07:45 +08:00
commit afbd6a8422
No known key found for this signature in database
GPG key ID: 5C826D1B0A90D1DE

View file

@ -1 +1,9 @@
npx lint-staged
#!/bin/bash
if [ -f "yarn.lock" ]; then
yarn lint-staged
elif [ -f "pnpm-lock.yaml" ]; then
pnpm lint-staged
else
npx lint-staged
fi