chore: add pre-push hook to run tests before push

Adds husky with a pre-push hook that runs `pnpm -r test` to catch
test failures before they reach the remote.

小橘 🍊(NEKO Team)
This commit is contained in:
2026-04-24 12:28:47 +00:00
parent 8807b0ac6a
commit dd3d4315c4
3 changed files with 16 additions and 1 deletions
+4 -1
View File
@@ -5,13 +5,16 @@
"node": ">=22.5.0"
},
"scripts": {
"prepare": "husky",
"build": "pnpm -r run build",
"check": "biome check .",
"format": "biome format --write ."
"format": "biome format --write .",
"prepare": "husky"
},
"devDependencies": {
"@biomejs/biome": "^1.9.0",
"@rslib/core": "^0.21.3",
"husky": "^9.1.7",
"typescript": "^5.5.0"
}
}