refactor: use conditional import for husky install