mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-11-10 18:19:52 +05:30
chore: pre-commit script detect package manager
This commit is contained in:
parent
614125002c
commit
afbd6a8422
1 changed files with 9 additions and 1 deletions
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue