Skip to content

Add Husky script to package.json #1962

@JackHaeg

Description

@JackHaeg

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

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Final QA (product)

Relationships

None yet

Development

No branches or pull requests

Issue actions