From b4b668f4648d73cfefda3924c9ae596ef8177a9a Mon Sep 17 00:00:00 2001 From: Markus Tacker Date: Tue, 30 Jan 2024 15:16:57 +0100 Subject: [PATCH] chore: update husky to v9 --- .husky/commit-msg | 3 --- .husky/pre-commit | 3 --- package-lock.json | 40 ++++++++++++++++++++++++++++++++-------- package.json | 3 ++- 4 files changed, 34 insertions(+), 15 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index 8796e175e..032ee3f60 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npx commitlint --edit $1 \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit index 38f815043..6c99a11ef 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npx lint-staged && npm test \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index c85bf25d9..ecc394c55 100644 --- a/package-lock.json +++ b/package-lock.json @@ -60,6 +60,7 @@ "eslint-plugin-jsx-a11y": "6.8.0", "eslint-plugin-react": "7.33.2", "eslint-plugin-react-hooks": "4.6.0", + "husky": "9.0.7", "react-scripts": "4.0.3" }, "engines": { @@ -6343,6 +6344,21 @@ "npm": ">=8" } }, + "node_modules/@nordicsemiconductor/asset-tracker-cloud-code-style/node_modules/husky": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", + "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", + "dev": true, + "bin": { + "husky": "lib/bin.js" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/typicode" + } + }, "node_modules/@nordicsemiconductor/cell-geolocation-helpers": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/@nordicsemiconductor/cell-geolocation-helpers/-/cell-geolocation-helpers-6.0.0.tgz", @@ -15036,15 +15052,15 @@ } }, "node_modules/husky": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", - "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", + "version": "9.0.7", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.7.tgz", + "integrity": "sha512-vWdusw+y12DUEeoZqW1kplOFqk3tedGV8qlga8/SF6a3lOiWLqGZZQvfWvY0fQYdfiRi/u1DFNpudTSV9l1aCg==", "dev": true, "bin": { - "husky": "lib/bin.js" + "husky": "bin.js" }, "engines": { - "node": ">=14" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/typicode" @@ -34059,6 +34075,14 @@ "prettier": "2.8.4", "prettier-plugin-organize-imports": "3.2.2", "typescript": "4.9.5" + }, + "dependencies": { + "husky": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", + "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", + "dev": true + } } }, "@nordicsemiconductor/cell-geolocation-helpers": { @@ -40052,9 +40076,9 @@ "dev": true }, "husky": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", - "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", + "version": "9.0.7", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.7.tgz", + "integrity": "sha512-vWdusw+y12DUEeoZqW1kplOFqk3tedGV8qlga8/SF6a3lOiWLqGZZQvfWvY0fQYdfiRi/u1DFNpudTSV9l1aCg==", "dev": true }, "iconv-lite": { diff --git a/package.json b/package.json index 8c87d90da..14ad5e30c 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "build": "react-scripts --openssl-legacy-provider --max_old_space_size=4096 build", "test": "npx tsx --test ./src/**/*.spec.ts", "eject": "react-scripts eject", - "prepare": "husky install" + "prepare": "husky" }, "repository": { "type": "git", @@ -76,6 +76,7 @@ "eslint-plugin-jsx-a11y": "6.8.0", "eslint-plugin-react": "7.33.2", "eslint-plugin-react-hooks": "4.6.0", + "husky": "9.0.7", "react-scripts": "4.0.3" }, "lint-staged": {