- Install Husky with commit-msg and pre-commit hooks - Add commitlint CLI and conventional config for enforcing commit message standards - Configure pre-commit to run lint-staged for code quality checks - Update bun.lock with new dev dependencies This setup ensures consistent commit messages and automated linting before commits.
9 lines
286 B
TypeScript
9 lines
286 B
TypeScript
if (process.env.NODE_ENV === 'production' || process.env.CI === 'true') {
|
|
console.log(
|
|
'Skipping husky install. If you are in a CI, Building or Production environment you can ignore this.'
|
|
)
|
|
process.exit(0)
|
|
}
|
|
const husky = (await import('husky')).default
|
|
console.log(husky())
|