From fd8f5774474955082dddce43efe8a06a2dc042bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Mond=C3=A9jar?= Date: Tue, 6 Feb 2024 17:47:53 +0100 Subject: [PATCH] Migrate Husky to v9 (#10403) --- .husky/pre-commit | 3 --- package.json | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 829b717c..186d7f66 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,2 @@ -#!/bin/sh -. "$(dirname $0)/_/husky.sh" - npm run format git add -u diff --git a/package.json b/package.json index 218d32f8..8a1d809b 100644 --- a/package.json +++ b/package.json @@ -91,7 +91,7 @@ "esbuild": "0.19.4", "fake-diff": "1.0.0", "get-relative-luminance": "1.0.0", - "husky": "8.0.3", + "husky": "9.0.10", "is-ci": "3.0.1", "jsonschema": "1.4.1", "markdown-link-check": "3.11.2", @@ -116,7 +116,7 @@ "jsonlint": "node scripts/lint/jsonlint.js", "svglint": "svglint icons/*.svg --ci", "wslint": "editorconfig-checker", - "prepare": "is-ci || husky install", + "prepare": "is-ci || husky", "prepublishOnly": "npm run build", "postpublish": "npm run clean", "test": "mocha tests --reporter tests/min-reporter.cjs --inline-diffs",