diff --git a/.husky/commit-msg b/.husky/commit-msg index 735567d7..ba13e99e 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,6 +1,3 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - [ -n "$CI" ] && exit 0 -npx commitlint --edit "$1" +yarn commitlint --edit "$1" diff --git a/.husky/pre-commit b/.husky/pre-commit index c328a433..843dcb76 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,6 +1,3 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - [ -n "$CI" ] && exit 0 npm run test:lint diff --git a/package.json b/package.json index 3d5356d6..bbf8b86f 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "./packages/*" ], "scripts": { - "prepare": "husky install", + "prepare": "husky", "test:lint": "eslint --config=./.eslintrc.dev.json .", "test:unit": "yarn workspaces foreach --all run test:unit" },