diff --git a/.husky/pre-commit b/.husky/pre-commit index 4be91c9..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 diff --git a/package.json b/package.json index c246f18..ba92ffc 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", @@ -46,7 +46,7 @@ "@types/jest": "^29.5.12", "concurrently": "^8.2.2", "eslint-config-txo-typescript": "^4.0.53", - "husky": "^8.0.3", + "husky": "^9.0.11", "jest": "^29.7.0", "lint-staged": "^15.2.2", "rimraf": "^5.0.5", diff --git a/yarn.lock b/yarn.lock index 8eb2cb0..5dd1100 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3911,10 +3911,10 @@ humanize-ms@^1.2.1: dependencies: ms "^2.0.0" -husky@^8.0.3: - version "8.0.3" - resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.3.tgz#4936d7212e46d1dea28fef29bb3a108872cd9184" - integrity sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg== +husky@^9.0.11: + version "9.0.11" + resolved "https://registry.yarnpkg.com/husky/-/husky-9.0.11.tgz#fc91df4c756050de41b3e478b2158b87c1e79af9" + integrity sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw== iconv-lite@^0.4.24: version "0.4.24"