add husky pre commit hook

This commit is contained in:
Aman Varshney
2025-02-11 11:32:45 +05:30
parent e02ee56d74
commit 96f65a2a3f
8 changed files with 216 additions and 137 deletions

View File

@@ -12,7 +12,8 @@
"typecheck": "tsc --noEmit",
"check": "biome check --write .",
"test": "vitest run",
"prepublishOnly": "npm run build"
"prepublishOnly": "npm run build",
"prepare": "husky"
},
"files": [
"dist",
@@ -25,14 +26,21 @@
"execa": "^8.0.1",
"fs-extra": "^11.2.0",
"gradient-string": "^3.0.0",
"lint-staged": "^15.4.3",
"ora": "^7.0.1"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@types/inquirer": "^9.0.7",
"@types/node": "^20.10.5",
"husky": "^9.1.7",
"tsup": "^8.0.1",
"typescript": "^5.3.3",
"vitest": "^1.1.0"
},
"lint-staged": {
"*": [
"biome check --write ."
]
}
}