diff --git a/.husky/commit-msg b/.husky/commit-msg index fe4c17a22..dab272daf 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npx --no-install commitlint --edit "" diff --git a/.husky/pre-commit b/.husky/pre-commit index fe156c99e..f76ea124d 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,6 +1,3 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - # Keep concurrency 1 to avoid lint-staged issue # Which may cause ALL your work LOST WITHOUT STASH FORCE_COLOR=1 pnpm -r --workspace-concurrency 1 --filter "[HEAD]" precommit diff --git a/package.json b/package.json index 482dfec1f..292c0aa69 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "preinstall": "npx only-allow pnpm", "pnpm:devPreinstall": "cd packages/connectors && node templates/sync-preset.js", - "prepare": "if test \"$NODE_ENV\" != \"production\" && test \"$CI\" != \"true\" ; then husky install ; fi", + "prepare": "if test \"$NODE_ENV\" != \"production\" && test \"$CI\" != \"true\" ; then husky ; fi", "prepack": "pnpm -r prepack", "dev": "pnpm -r prepack && pnpm start:dev", "dev:cloud": "IS_CLOUD=1 CONSOLE_PUBLIC_URL=/ pnpm dev", @@ -29,7 +29,7 @@ "@commitlint/config-conventional": "^18.0.0", "@commitlint/types": "^18.0.0", "@types/pg": "^8.6.6", - "husky": "^8.0.0", + "husky": "^9.0.0", "pg": "^8.8.0", "typescript": "^5.0.0" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 87d09e06e..08a867c1f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -28,8 +28,8 @@ importers: specifier: ^8.6.6 version: 8.6.6 husky: - specifier: ^8.0.0 - version: 8.0.1 + specifier: ^9.0.0 + version: 9.0.7 pg: specifier: ^8.8.0 version: 8.8.0 @@ -14307,9 +14307,9 @@ packages: resolution: {integrity: sha1-EcCvakcWQ2M1iFiASPF5lUFInBg=} dev: false - /husky@8.0.1: - resolution: {integrity: sha512-xs7/chUH/CKdOCs7Zy0Aev9e/dKOMZf3K1Az1nar3tzlv0jfqnYtu235bstsWTmXOR0EfINrPa97yy4Lz6RiKw==} - engines: {node: '>=14'} + /husky@9.0.7: + resolution: {integrity: sha512-vWdusw+y12DUEeoZqW1kplOFqk3tedGV8qlga8/SF6a3lOiWLqGZZQvfWvY0fQYdfiRi/u1DFNpudTSV9l1aCg==} + engines: {node: '>=18'} hasBin: true dev: true