chore: add husky; auto mirror to gh & sh

This commit is contained in:
ayo 2026-02-22 15:35:36 +01:00
parent c1b24a1d5f
commit 47dfb1bc67
3 changed files with 698 additions and 964 deletions

3
.husky/post-commit Normal file
View file

@ -0,0 +1,3 @@
echo "post-commit..."
git push gh --mirror
git push sh --mirror

View file

@ -23,16 +23,18 @@
"index.ts"
],
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"dev": "astro telemetry disable && astro dev",
"start": "astro telemetry disable && astro dev",
"build": "astro telemetry disable && astro build",
"preview": "astro preview",
"publish:patch": "npm version patch && npm publish --access public",
"publish:minor": "npm version minor && npm publish --access public"
"publish:minor": "npm version minor && npm publish --access public",
"prepare": "husky"
},
"devDependencies": {
"devalue": "^5.1.1"
"devalue": "^5.1.1",
"husky": "^9.1.7"
},
"peerDependencies": {
"astro": "^5"

File diff suppressed because it is too large Load diff