From 3c45e68d89ee54a2d39494449f1d541b073c4807 Mon Sep 17 00:00:00 2001 From: cexbrayat Date: Thu, 25 Jan 2024 13:55:34 +0100 Subject: [PATCH] chore: simplify husky setup husky v9 simplified its setup , see `How to migrate` in https://github.com/typicode/husky/releases/tag/v9.0.1 --- .husky/pre-commit | 3 --- package.json | 4 ++-- pnpm-lock.yaml | 8 ++++---- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 5e592735..5ee7abd8 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - pnpm exec lint-staged diff --git a/package.json b/package.json index 15628c55..51d69407 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "node": ">=v16.20.0" }, "scripts": { - "prepare": "husky install", + "prepare": "husky", "format": "prettier --write .", "build": "zx ./scripts/build.mjs", "snapshot": "zx ./scripts/snapshot.mjs", @@ -45,7 +45,7 @@ "ejs": "^3.1.9", "esbuild": "^0.18.20", "esbuild-plugin-license": "^1.2.2", - "husky": "^9.0.1", + "husky": "^9.0.2", "kolorist": "^1.8.0", "lint-staged": "^15.2.0", "minimist": "^1.2.8", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 11ef3bfc..98b0a0ac 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -36,8 +36,8 @@ importers: specifier: ^1.2.2 version: 1.2.2(esbuild@0.18.20) husky: - specifier: ^9.0.1 - version: 9.0.1 + specifier: ^9.0.2 + version: 9.0.2 kolorist: specifier: ^1.8.0 version: 1.8.0 @@ -3705,8 +3705,8 @@ packages: engines: {node: '>=16.17.0'} dev: true - /husky@9.0.1: - resolution: {integrity: sha512-rXCT8yF2v3awSG03AG6IgICDhJ+m8o3jL1ROwsT4nQZ6urEyKSj0IWFDIh5YC2zgZeAxWksNMbN6rYY4BE1Zrw==} + /husky@9.0.2: + resolution: {integrity: sha512-0yR5R3OPjl8bYApi6T4QMOAwhtLhBjdYIVg5S6zSzIO8DIvQMh/b7Q8jW3WLbHLHtzpwiyMLBNB4R0Eb6x5+AA==} engines: {node: '>=18'} hasBin: true dev: true