Просмотр исходного кода

Merge pull request #4274 from hestiacp/upgrade-husky

chore(deps): upgrade husky to v9
Jaap Marcus 2 лет назад
Родитель
Сommit
7ad2552ede
3 измененных файлов с 8 добавлено и 11 удалено
  1. 0 3
      .husky/pre-commit
  2. 6 6
      package-lock.json
  3. 2 2
      package.json

+ 0 - 3
.husky/pre-commit

@@ -1,4 +1 @@
-#!/bin/sh
-. "$(dirname "$0")/_/husky.sh"
-
 npx lint-staged

+ 6 - 6
package-lock.json

@@ -29,7 +29,7 @@
 				"eslint-config-prettier": "9.1.0",
 				"eslint-plugin-editorconfig": "4.0.3",
 				"eslint-plugin-import": "2.29.1",
-				"husky": "8.0.3",
+				"husky": "9.0.7",
 				"lightningcss": "1.23.0",
 				"lint-staged": "15.2.0",
 				"markdownlint-cli2": "0.12.1",
@@ -3523,15 +3523,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"

+ 2 - 2
package.json

@@ -15,7 +15,7 @@
 		"lint-staged": "lint-staged",
 		"format": "prettier --cache --write .",
 		"preinstall": "npx only-allow npm",
-		"prepare": "husky install"
+		"prepare": "husky"
 	},
 	"dependencies": {
 		"@fortawesome/fontawesome-free": "6.5.1",
@@ -37,7 +37,7 @@
 		"eslint-config-prettier": "9.1.0",
 		"eslint-plugin-editorconfig": "4.0.3",
 		"eslint-plugin-import": "2.29.1",
-		"husky": "8.0.3",
+		"husky": "9.0.7",
 		"lightningcss": "1.23.0",
 		"lint-staged": "15.2.0",
 		"markdownlint-cli2": "0.12.1",