generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 97
Closed
Labels
complexity: smallfeature: InfrastructureSecrets, Prod and Dev setup, etc.Secrets, Prod and Dev setup, etc.role: Dev Leadsize: 0.5ptCan be done in 2-3 hours or lessCan be done in 2-3 hours or less
Milestone
Description
Overview
Husky is not being initialized after running npm install, which can lead to pre-commit hooks not functioning correctly. Adding a prepare script to package.json ensures Husky is consistently set up across environments.
Action Items
- Add the following script to the root package.json under "scripts" to ensure Husky is set up after every install:
"scripts": {
// ...existing scripts...
"prepare": "husky install"
}- Test a fresh install (
rm -rf node_modules && npm install) to confirm Husky hooks are correctly initialized.
Resources/Instructions
- Husky documentation: https://typicode.github.io/husky/#/?id=automatic-recommended
- Example of proper setup from Husky GitHub: https://github.com/typicode/husky
Metadata
Metadata
Assignees
Labels
complexity: smallfeature: InfrastructureSecrets, Prod and Dev setup, etc.Secrets, Prod and Dev setup, etc.role: Dev Leadsize: 0.5ptCan be done in 2-3 hours or lessCan be done in 2-3 hours or less
Type
Projects
Status
Final QA (product)