diff --git a/.husky/pre-commit b/.husky/pre-commit index 42a6f6e..f029db6 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,2 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" +yarn commitlint --edit || exec < /dev/tty && yarn txo-cz --hook > /dev/null 2>&1 || true -yarn git-hook \ No newline at end of file diff --git a/package.json b/package.json index 2d0eb2c..d29b6b8 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "lint": "eslint --max-warnings 0 .", "fixcode": "eslint . --fix", "git-hook": "yarn -s lint-staged", - "prepare": "husky install && yarn build", + "prepare": "husky && yarn build", "print-txo-packages": "yarn list 2> /dev/null|grep @txo|sed 's/.*\\(@txo[^@]*\\)@^*\\([^ ]*\\).*/\\1@\\2/g'|sort|uniq", "sanity": "yarn lint && yarn build && tsc --noEmit && yarn test --coverage && yarn compare-boilerplate-version && echo 'success'", "semantic-release": "semantic-release",