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"