From 7df3c1f5fca8ae3e2a1a015b5698420c278e06c1 Mon Sep 17 00:00:00 2001 From: Pagan Gazzard Date: Mon, 29 Apr 2024 14:06:54 +0100 Subject: [PATCH] Dev: update husky to v9 Change-type: patch --- .husky/pre-commit | 3 --- package-lock.json | 12 ++++++------ package.json | 4 ++-- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 41ae0d5c..718da8a9 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - npx --no lint-staged diff --git a/package-lock.json b/package-lock.json index 5a301962..5a2ea316 100644 --- a/package-lock.json +++ b/package-lock.json @@ -66,7 +66,7 @@ "fork-ts-checker-webpack-plugin": "^9.0.2", "fp-ts": "^2.8.1", "got": "14.2.1", - "husky": "^8.0.1", + "husky": "^9.0.11", "io-ts": "^2.2.10", "io-ts-reporters": "^1.2.2", "json-mask": "^2.0.0", @@ -7152,15 +7152,15 @@ } }, "node_modules/husky": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.1.tgz", - "integrity": "sha512-xs7/chUH/CKdOCs7Zy0Aev9e/dKOMZf3K1Az1nar3tzlv0jfqnYtu235bstsWTmXOR0EfINrPa97yy4Lz6RiKw==", + "version": "9.0.11", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.11.tgz", + "integrity": "sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==", "dev": true, "bin": { - "husky": "lib/bin.js" + "husky": "bin.mjs" }, "engines": { - "node": ">=14" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/typicode" diff --git a/package.json b/package.json index 5cba6d3d..dcc387ac 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "clean": "rimraf build", "install-native-deps": "./build-utils/install-dbus.sh", "flowzone-preinstall": "npm run install-native-deps", - "prepare": "node -e \"try { require('husky').install() } catch (e) {if (e.code !== 'MODULE_NOT_FOUND') throw e}\"" + "prepare": "node -e \"try { (await import('husky')).default() } catch (e) { if (e.code !== 'ERR_MODULE_NOT_FOUND') throw e }\" --input-type module" }, "private": true, "dependencies": { @@ -92,7 +92,7 @@ "fork-ts-checker-webpack-plugin": "^9.0.2", "fp-ts": "^2.8.1", "got": "14.2.1", - "husky": "^8.0.1", + "husky": "^9.0.11", "io-ts": "^2.2.10", "io-ts-reporters": "^1.2.2", "json-mask": "^2.0.0",