From ceb59e8bb564779c72ef52dcf5bdea84e593e6ed Mon Sep 17 00:00:00 2001 From: Palash gupta Date: Thu, 19 May 2022 13:24:46 +0530 Subject: [PATCH] fix: yarn is turned into npm --- frontend/.husky/commit-msg | 2 +- frontend/package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/.husky/commit-msg b/frontend/.husky/commit-msg index 7f53561e1c..818ef8b9b5 100755 --- a/frontend/.husky/commit-msg +++ b/frontend/.husky/commit-msg @@ -1,4 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -cd frontend && yarn commitlint --edit $1 +cd frontend && npm run commitlint diff --git a/frontend/package.json b/frontend/package.json index 0b828cb1c6..6db21c2929 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -15,7 +15,8 @@ "jest:coverage": "jest --coverage", "jest:watch": "jest --watch", "postinstall": "yarn husky:configure", - "husky:configure": "cd .. && husky install frontend/.husky && cd frontend && chmod ug+x .husky/*" + "husky:configure": "cd .. && husky install frontend/.husky && cd frontend && chmod ug+x .husky/*", + "commitlint": "commitlint --edit $1" }, "engines": { "node": ">=12.13.0"