Chore: Update yarn version and improve pre-commit #1
@ -1,2 +1,9 @@
|
||||
# .husky/pre-commit
|
||||
yarn lint-staged
|
||||
yarn lint-staged
|
||||
|
||||
branch="$(git rev-parse --abbrev-ref HEAD)"
|
||||
|
||||
if [ "$branch" = "main" ]; then
|
||||
echo "You can't commit directly to main branch"
|
||||
exit 1
|
||||
fi
|
||||
File diff suppressed because one or more lines are too long
@ -1,2 +1,3 @@
|
||||
yarnPath: .yarn/releases/yarn-4.4.1.cjs
|
||||
nodeLinker: node-modules
|
||||
|
||||
yarnPath: .yarn/releases/yarn-4.5.0.cjs
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ulthar-framework",
|
||||
"packageManager": "yarn@4.4.1",
|
||||
"packageManager": "yarn@4.5.0",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user