Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

update husky to v9 (#67846)

Jakub Chodorowicz5bc3af2630e6
diff --git a/.husky/pre-commit b/.husky/pre-commit
index 8247611c045..8aa3b0e9d77 100755
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -1,6 +1,3 @@
-#!/bin/sh
-. "$(dirname "$0")/_/husky.sh"
-
yarn precommit
# Run the formatter
@@ -9,4 +6,4 @@ yarn precommit
# ATM, you can manually run ./bin/cljfmt_staged.sh if you want to format locally staged files and inspect after.
# ./bin/cljfmt_staged.sh
-./hooks/pre-commit.nocommit
\ No newline at end of file
+./hooks/pre-commit.nocommit
diff --git a/package.json b/package.json
index d38ca51777a..d91874ebdd7 100644
--- a/package.json
+++ b/package.json
@@ -284,7 +284,7 @@
"glob": "^7.1.1",
"html-webpack-plugin": "5.5.0",
"http-server": "^14.1.1",
- "husky": "^8.0.2",
+ "husky": "^9.1.7",
"inquirer-file-selector": "^0.2.1",
"jest": "^29.7.0",
"jest-canvas-mock": "^2.5.2",
@@ -463,7 +463,7 @@
"postinstall": "if [ -z \"$CI\" ]; then yarn-deduplicate --scopes @babel && yarn patch-package; fi",
"precommit": "lint-staged",
"preinstall": "echo $npm_execpath | grep -q yarn || echo '\\033[0;33mSorry, npm is not supported. Please use Yarn (https://yarnpkg.com/).\\033[0m'",
- "prepare": "husky install",
+ "prepare": "husky",
"prettier": "prettier --write --cache '{frontend,enterprise/frontend,e2e}/**/*.{js,jsx,ts,tsx,css}'",
"remove-webpack-cache": "rm -rf ./node_modules/.cache",
"serve-resources": "http-server resources/frontend_client -p 3100 -c-1",
diff --git a/yarn.lock b/yarn.lock
index c32e8ae617f..6648e7db7c0 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -12815,10 +12815,10 @@ humanize-plus@^1.8.1:
resolved "https://registry.yarnpkg.com/humanize-plus/-/humanize-plus-1.8.2.tgz#a65b34459ad6367adbb3707a82a3c9f916167030"
integrity sha1-pls0RZrWNnrbs3B6gqPJ+RYWcDA=
-husky@^8.0.2:
- version "8.0.2"
- resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.2.tgz#5816a60db02650f1f22c8b69b928fd6bcd77a236"
- integrity sha512-Tkv80jtvbnkK3mYWxPZePGFpQ/tT3HNSs/sasF9P2YfkMezDl3ON37YN6jUUI4eTg5LcyVynlb6r4eyvOmspvg==
+husky@^9.1.7:
+ version "9.1.7"
+ resolved "https://registry.yarnpkg.com/husky/-/husky-9.1.7.tgz#d46a38035d101b46a70456a850ff4201344c0b2d"
+ integrity sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==
hyphenate-style-name@^1.0.3:
version "1.0.4"