Fix pre-commit script not being generated

This commit is contained in:
Bradlee Speice 2023-04-15 13:02:06 -04:00
parent 738e2a4e7e
commit 1ef5d5bbbd
3 changed files with 6 additions and 7 deletions

4
.husky/pre-commit Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx pretty-quick --staged

2
package-lock.json generated
View File

@ -17,7 +17,7 @@
"@types/react": "^18.0.28", "@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11", "@types/react-dom": "^18.0.11",
"@vitejs/plugin-react-swc": "^3.0.0", "@vitejs/plugin-react-swc": "^3.0.0",
"husky": "^8.0.3", "husky": "^8.0.0",
"pretty-quick": "^3.1.3", "pretty-quick": "^3.1.3",
"typescript": "^4.9.3", "typescript": "^4.9.3",
"vite": "^4.2.0" "vite": "^4.2.0"

View File

@ -19,14 +19,9 @@
"@types/react": "^18.0.28", "@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11", "@types/react-dom": "^18.0.11",
"@vitejs/plugin-react-swc": "^3.0.0", "@vitejs/plugin-react-swc": "^3.0.0",
"husky": "^8.0.3", "husky": "^8.0.0",
"pretty-quick": "^3.1.3", "pretty-quick": "^3.1.3",
"typescript": "^4.9.3", "typescript": "^4.9.3",
"vite": "^4.2.0" "vite": "^4.2.0"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
} }
} }