Compare commits

...

2 Commits

5 changed files with 184 additions and 164 deletions

View File

@ -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

12
.husky/pre-push Normal file
View File

@ -0,0 +1,12 @@
# .husky/pre-push
branch="$(git rev-parse --abbrev-ref HEAD)"
while read local_ref local_sha remote_ref remote_sha
do
echo $local_ref
echo $local_sha
echo $remote_ref
echo $remote_sha
done
exit 1

File diff suppressed because one or more lines are too long

View File

@ -1,2 +1,3 @@
yarnPath: .yarn/releases/yarn-4.4.1.cjs
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-4.5.0.cjs

View File

@ -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",