diff --git a/package-lock.json b/package-lock.json index bc23023993..f7b29fa251 100644 --- a/package-lock.json +++ b/package-lock.json @@ -38,7 +38,7 @@ "eslint-plugin-promise": "^6.1.1", "gulp": "^4.0.2", "gulp-cli": "^2.3.0", - "husky": "^8.0.3", + "husky": "^9.0.10", "jest": "^29.7.0", "jest-environment-node-single-context": "^29.4.0", "jest-puppeteer": "^9.0.2", @@ -15526,15 +15526,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.10", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.10.tgz", + "integrity": "sha512-TQGNknoiy6bURzIO77pPRu+XHi6zI7T93rX+QnJsoYFf3xdjKOur+IlfqzJGMHIK/wXrLg+GsvMs8Op7vI2jVA==", "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 411ad6dcd0..9df17b1834 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "lint:scss": "npm run lint:scss:cli -- \"**/*.{md,scss}\"", "lint:scss:cli": "stylelint --cache --cache-location .cache/stylelint --cache-strategy content --color --ignore-path .gitignore --max-warnings 0", "lint:types": "tsc --build tsconfig.json", - "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" }, "devDependencies": { "@babel/core": "^7.23.9", @@ -70,7 +70,7 @@ "eslint-plugin-promise": "^6.1.1", "gulp": "^4.0.2", "gulp-cli": "^2.3.0", - "husky": "^8.0.3", + "husky": "^9.0.10", "jest": "^29.7.0", "jest-environment-node-single-context": "^29.4.0", "jest-puppeteer": "^9.0.2",