diff --git a/.husky/commit-msg b/.husky/commit-msg index 1298196..5399306 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npm exec commitlint -- --edit "$1" \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit index 19281f5..983b9d0 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - # npm run lint:ts && npm exec lint-staged diff --git a/package.json b/package.json index 52e02f5..7204d38 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "url": "https://github.com/taoliujun/json-beautiful-render/issues" }, "scripts": { - "prepare": "husky install", + "prepare": "husky", "changelog": "pnpm exec changeset add", "version": "pnpm exec changeset version", "release": "pnpm exec changeset publish", @@ -64,7 +64,7 @@ "@tsconfig/node18": "^18.2.2", "@types/jest": "^29.5.12", "@types/node": "^20.10.5", - "husky": "^8.0.3", + "husky": "^9.0.10", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "lint-staged": "^15.2.1", @@ -73,4 +73,4 @@ "webpack": "^5.90.0", "webpack-cli": "^5.1.4" } -} \ No newline at end of file +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 58ace10..37d1dc4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -33,8 +33,8 @@ devDependencies: specifier: ^20.10.5 version: 20.10.6 husky: - specifier: ^8.0.3 - version: 8.0.3 + specifier: ^9.0.10 + version: 9.0.10 jest: specifier: ^29.7.0 version: 29.7.0(@types/node@20.10.6) @@ -3597,9 +3597,9 @@ packages: engines: {node: '>=16.17.0'} dev: true - /husky@8.0.3: - resolution: {integrity: sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==} - engines: {node: '>=14'} + /husky@9.0.10: + resolution: {integrity: sha512-TQGNknoiy6bURzIO77pPRu+XHi6zI7T93rX+QnJsoYFf3xdjKOur+IlfqzJGMHIK/wXrLg+GsvMs8Op7vI2jVA==} + engines: {node: '>=18'} hasBin: true dev: true