diff --git a/.husky/.gitignore b/.husky/.gitignore deleted file mode 100644 index 31354ec..0000000 --- a/.husky/.gitignore +++ /dev/null @@ -1 +0,0 @@ -_ diff --git a/.husky/commit-msg b/.husky/commit-msg index 5426a93..a78cc75 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npx commitlint --edit $1 diff --git a/.husky/post-commit b/.husky/post-commit index ec13430..88d5a7f 100755 --- a/.husky/post-commit +++ b/.husky/post-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - git update-index --again diff --git a/.husky/pre-commit b/.husky/pre-commit index a165ed2..e3456b2 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npx lint-staged --relative diff --git a/package-lock.json b/package-lock.json index 539a10a..4bd90b2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -50,7 +50,7 @@ "eslint-import-resolver-typescript": "^2.7.1", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^26.2.2", - "husky": "^8.0.1", + "husky": "^9.0.11", "is-ci": "~3.0.1", "is-port-reachable": "^4.0.0", "jest": "^28.1.0", @@ -9469,16 +9469,16 @@ } }, "node_modules/husky": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", - "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", + "version": "9.0.11", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.11.tgz", + "integrity": "sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==", "dev": true, "license": "MIT", "bin": { - "husky": "lib/bin.js" + "husky": "bin.mjs" }, "engines": { - "node": ">=14" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/typicode" diff --git a/package.json b/package.json index ba7fa94..50a1b56 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "prettier": "prettier", "jest": "jest", "mikro-orm": "mikro-orm", - "prepare": "is-ci || husky install", + "prepare": "is-ci || husky", "prebuild": "rimraf dist", "build": "nest build", "migration:up": "mikro-orm migration:up", @@ -101,7 +101,7 @@ "eslint-import-resolver-typescript": "^2.7.1", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^26.2.2", - "husky": "^8.0.1", + "husky": "^9.0.11", "is-ci": "~3.0.1", "is-port-reachable": "^4.0.0", "jest": "^28.1.0",