Add husky pre-commit hook for formatting and type checking

This commit is contained in:
Mario Zechner 2025-08-11 21:15:37 +02:00
parent e21a46e68f
commit 42bf7b4ae0
3 changed files with 94 additions and 46 deletions

View file

@ -16,11 +16,13 @@
"version:set": "npm version -ws",
"prepublish": "npm run clean && npm run build && npm run check",
"publish": "npm run prepublish && npm publish -ws --access public",
"publish:dry": "npm run prepublish && npm publish -ws --access public --dry-run"
"publish:dry": "npm run prepublish && npm publish -ws --access public --dry-run",
"prepare": "husky"
},
"devDependencies": {
"@biomejs/biome": "^2.1.4",
"@types/node": "^22.10.5",
"husky": "^9.1.7",
"tsx": "^4.20.3",
"typescript": "^5.9.2"
},