chore: add pre-commit test & lint

This commit is contained in:
Ayo Ayco 2026-02-24 08:13:27 +01:00
parent fc8a15326f
commit 5151f79dc1
2 changed files with 5 additions and 1 deletions

3
.husky/pre-commit Normal file
View file

@ -0,0 +1,3 @@
echo "pre-commit..."
pnpm run lint
pnpm run test

View file

@ -11,11 +11,12 @@
"test": "pnpm -F @ayco/astro-sw test",
"build": "pnpm -F @ayco/astro-sw build",
"demo": "pnpm run build && pnpm -F demo build:preview",
"dev": "pnpm run demo",
"postinstall": "pnpm run build"
},
"repository": {
"type": "git",
"url": "git+ssh://git@git.sr.ht/~ayoayco/astro-sw.git"
"url": "https://git.ayo.run/ayo/astro-sw"
},
"author": "Ayo Ayco",
"license": "MIT",