Skip to content

The Open Source DocuSign Alternative.

fix: commitlint

Ashutosh-Bhadauriyad36ca59b7715
diff --git a/.husky/commit-msg b/.husky/commit-msg
index e81052228..6610d88b5 100755
--- a/.husky/commit-msg
+++ b/.husky/commit-msg
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
-npx --no -- commitlint --edit $1
+npm run commitlint -- $1
diff --git a/commitlint.config.cjs b/commitlint.config.cjs
index 422b19445..84dcb122a 100644
--- a/commitlint.config.cjs
+++ b/commitlint.config.cjs
@@ -1 +1,3 @@
-module.exports = { extends: ['@commitlint/config-conventional'] };
+module.exports = {
+ extends: ['@commitlint/config-conventional'],
+};
diff --git a/package.json b/package.json
index 60aa8cb4c..193c66892 100644
--- a/package.json
+++ b/package.json
@@ -6,7 +6,8 @@
"start": "cd apps && cd web && next start",
"lint": "turbo run lint",
"format": "prettier --write \"**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts,mdx}\"",
- "prepare": "husky install"
+ "prepare": "husky install",
+ "commitlint": "commitlint --edit"
},
"devDependencies": {
"@commitlint/cli": "^17.7.1",