diff --git a/.husky/pre-commit b/.husky/pre-commit index f42dc94..2a1e22c 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -pnpm pretty-quick --staged +pnpm exec pretty-quick --staged diff --git a/package.json b/package.json index 2ed11e1..c5e1c98 100644 --- a/package.json +++ b/package.json @@ -10,11 +10,11 @@ "test": "jest", "lint": "tslint -p tsconfig.json", "umd": "rollup --config rollup.config.js", - "postinstall": "husky install", "build-doc": "dumi build", "publish": "npm publish ./lib --registry=https://registry.npmjs.org", "publish:alpha": "npm publish ./lib --registry=https://registry.npmjs.org --tag alpha", - "publish:dev": "npm publish ./lib --registry=https://registry.npmjs.org --tag dev" + "publish:dev": "npm publish ./lib --registry=https://registry.npmjs.org --tag dev", + "prepare": "husky" }, "main": "./cjs/index.js", "module": "./es/index.js", @@ -46,7 +46,7 @@ "dumi": "^1.1.54", "gulp": "^4.0.2", "gulp-typescript": "^5.0.1", - "husky": "^8.0.3", + "husky": "^9.0.11", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "prettier": "^2.8.8", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 01366ec..e122567 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -66,8 +66,8 @@ devDependencies: specifier: ^5.0.1 version: 5.0.1(typescript@5.2.2) husky: - specifier: ^8.0.3 - version: 8.0.3 + specifier: ^9.0.11 + version: 9.0.11 jest: specifier: ^29.7.0 version: 29.7.0(@types/node@17.0.45) @@ -5079,9 +5079,9 @@ packages: resolution: {integrity: sha512-E0eIbrFWUhwfXJmsbdjRQFQPrl5pTEoKlz163j1mTqqUnU9PgR4AgB8AIITzuB3vLBdxZXyZ9TDIrwB2OASz4g==} dev: true - /husky@8.0.3: - resolution: {integrity: sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==} - engines: {node: '>=14'} + /husky@9.0.11: + resolution: {integrity: sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==} + engines: {node: '>=18'} hasBin: true dev: true