From d36ca59b771507e1ff8b08a171ea4ae36dfcc53f Mon Sep 17 00:00:00 2001 From: Ashutosh-Bhadauriya Date: Fri, 18 Aug 2023 13:49:46 +0530 Subject: [PATCH] fix: commitlint --- .husky/commit-msg | 2 +- commitlint.config.cjs | 4 +++- package.json | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) 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",