From 599578ed657a80ee28b1da68e9bd8f98d1bca114 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 18 Feb 2024 02:07:26 +0000 Subject: [PATCH 1/2] Update dependency husky to v9 --- package.json | 2 +- yarn.lock | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 5ad3f78..ad98955 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "eslint-config-next": "14.1.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-prettier": "^5.0.0", - "husky": "^8.0.3", + "husky": "^9.0.0", "lint-staged": "^15.2.0", "prettier": "^3.0.0", "prettier-plugin-tailwindcss": "^0.5.11", diff --git a/yarn.lock b/yarn.lock index aed840a..e6fd407 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10944,12 +10944,12 @@ __metadata: languageName: node linkType: hard -"husky@npm:^8.0.3": - version: 8.0.3 - resolution: "husky@npm:8.0.3" +"husky@npm:^9.0.0": + version: 9.0.11 + resolution: "husky@npm:9.0.11" bin: - husky: lib/bin.js - checksum: 10/b754cf70fdc97c3b60fec5b80056b9c11436464953b1691bf2b5dcf0081fb6685d2c5f47abb8b2b1c49f504aabea5321fdd6496f8b755d9f6e7525a493406abb + husky: bin.mjs + checksum: 10/8a9b7cb9dc8494b470b3b47b386e65d579608c6206da80d3cc8b71d10e37947264af3dfe00092368dad9673b51d2a5ee87afb4b2291e77ba9e7ec1ac36e56cd1 languageName: node linkType: hard @@ -17490,7 +17490,7 @@ __metadata: feed: "npm:^4.2.2" github-slugger: "npm:^2.0.0" hast-util-from-html-isomorphic: "npm:^2.0.0" - husky: "npm:^8.0.3" + husky: "npm:^9.0.0" lint-staged: "npm:^15.2.0" next: "npm:14.1.0" next-contentlayer: "npm:0.3.4" From 222c0f4784af55d5928cda9b2ad42b20695a41f8 Mon Sep 17 00:00:00 2001 From: Adriel <20115135+Adriel-M@users.noreply.github.com> Date: Sat, 17 Feb 2024 19:31:08 -0700 Subject: [PATCH 2/2] upgrade to 9 --- .husky/.gitignore | 1 - .husky/pre-commit | 3 --- package.json | 3 ++- 3 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 .husky/.gitignore mode change 100755 => 100644 .husky/pre-commit diff --git a/.husky/.gitignore b/.husky/.gitignore deleted file mode 100644 index 31354ec..0000000 --- a/.husky/.gitignore +++ /dev/null @@ -1 +0,0 @@ -_ diff --git a/.husky/pre-commit b/.husky/pre-commit old mode 100755 new mode 100644 index d37daa0..041c660 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npx --no-install lint-staged diff --git a/package.json b/package.json index ad98955..89f7a72 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "build": "tinacms build && cross-env INIT_CWD=$PWD next build && cross-env NODE_OPTIONS='--experimental-json-modules' node ./scripts/postbuild.mjs", "serve": "next start", "analyze": "cross-env ANALYZE=true next build", - "lint": "next lint --fix --dir pages --dir app --dir components --dir lib --dir layouts --dir scripts" + "lint": "next lint --fix --dir pages --dir app --dir components --dir lib --dir layouts --dir scripts", + "prepare": "husky" }, "dependencies": { "@next/bundle-analyzer": "14.1.0",