feat: Add Husky

This commit is contained in:
Jesse Wierzbinski 2024-05-15 17:19:45 -10:00
parent 2b5b82b465
commit 075a23124b
No known key found for this signature in database
3 changed files with 5 additions and 1 deletions

2
.husky/pre-commit Normal file
View file

@ -0,0 +1,2 @@
bun lint --apply
bun check

BIN
bun.lockb

Binary file not shown.

View file

@ -37,7 +37,8 @@
"wc": "find server database *.ts docs packages types utils drizzle tests -type f -print0 | wc -m --files0-from=-",
"cli": "bun run cli/index.ts",
"prune": "ts-prune | grep -v server/ | grep -v dist/ | grep -v '(used in module)'",
"check": "bunx tsc -p ."
"check": "bunx tsc -p .",
"prepare": "husky"
},
"trustedDependencies": [
"@biomejs/biome",
@ -86,6 +87,7 @@
"@types/qs": "^6.9.15",
"bun-types": "latest",
"drizzle-kit": "^0.21.1",
"husky": "^9.0.11",
"oclif": "^4.10.4",
"ts-prune": "^0.10.3",
"typescript": "^5.4.5"