diff --git a/.husky/pre-commit b/.husky/pre-commit index c0117bac79..a88da7a594 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,2 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - pnpm lint diff --git a/package.json b/package.json index eed9bcb3b3..e3d93df958 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "devenv:stop": "docker compose --env-file dev/.env.dev -f dev/docker-compose.dev.yml down", "test": "turbo run test", "test:ci": "pnpm run -r test --ci --coverage --runInBand", - "prepare": "node -e \"try { require('husky').install() } catch (e) {if (e.code !== 'MODULE_NOT_FOUND' && !e.message.startsWith('.git')) throw e}\"", + "prepare": "node -e \"try { import('husky').then((d) => console.log(d.default())) } catch (e) {if (e.code !== 'MODULE_NOT_FOUND' && !e.message.startsWith('.git')) throw e}\"", "lint": "turbo run lint lint:ts", "lint:ts": "eslint --cache --ext .tsx,.ts,.js .", "ci:version": "node scripts/version.mjs", @@ -43,7 +43,7 @@ "eslint-plugin-simple-import-sort": "10.0.0", "front-matter": "4.0.2", "globby": "14.0.0", - "husky": "8.0.3", + "husky": "9.0.6", "jest": "29.7.0", "jest-extended": "4.0.2", "node-glob": "1.2.0", @@ -68,4 +68,4 @@ "next@14.1.0": "patches/next@14.1.0.patch" } } -} \ No newline at end of file +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 23be6d55b7..a9d91ee1f0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -83,8 +83,8 @@ importers: specifier: 14.0.0 version: 14.0.0 husky: - specifier: 8.0.3 - version: 8.0.3 + specifier: 9.0.6 + version: 9.0.6 jest: specifier: 29.7.0 version: 29.7.0(@types/node@20.11.5)(ts-node@10.9.2) @@ -11592,9 +11592,9 @@ packages: resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==} engines: {node: '>=10.17.0'} - /husky@8.0.3: - resolution: {integrity: sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==} - engines: {node: '>=14'} + /husky@9.0.6: + resolution: {integrity: sha512-EEuw/rfTiMjOfuL7pGO/i9otg1u36TXxqjIA6D9qxVjd/UXoDOsLor/BSFf5hTK50shwzCU3aVVwdXDp/lp7RA==} + engines: {node: '>=18'} hasBin: true dev: true