We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92f55e5 commit a48982eCopy full SHA for a48982e
src/categories/js/commitlint/commitlint.utils.ts
@@ -1,6 +1,8 @@
1
-import { addHook } from '../husky/husky.utils';
+import { addHook, isHuskyInstalled } from '../husky/husky.utils';
2
import { CLI_NAME } from './commitlint.config';
3
4
export const huskyIntegration = async () => {
5
- await addHook('commit-msg', `npx --no-install -- ${CLI_NAME} --edit "$1"`);
+ if (await isHuskyInstalled()) {
6
+ await addHook('commit-msg', `npx --no-install -- ${CLI_NAME} --edit "$1"`);
7
+ }
8
};
0 commit comments