From a17665e20bd4cdf8c4f11f65396e2762d08b0ee2 Mon Sep 17 00:00:00 2001 From: Haileyesus Date: Mon, 9 Mar 2026 19:45:27 +0300 Subject: [PATCH] fix: update commit-msg hook to show installation when commitlint is not installed - When the `--no` flag is used with `npx`, it prevents the command from being executed if the package is not installed. We should instead show a message to the user indicating that they need to install `commitlint`. --- .husky/commit-msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index 0a4b97de..a78cc751 100644 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1 +1 @@ -npx --no -- commitlint --edit $1 +npx commitlint --edit $1