diff --git a/package-lock.json b/package-lock.json index 09b1213f..e4fab2eb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "@types/lodash": "4.14.202", "@types/node": "^20.6.0", "@types/request-promise": "4.1.51", - "husky": "^8.0.1", + "husky": "^9.0.0", "lint-staged": "15.2.2", "typescript": "5.3.3" }, @@ -3584,15 +3584,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.11", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.11.tgz", + "integrity": "sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==", "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 2966c625..89cb8502 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "lint": "balena-lint src/ typings/ && tsc --noEmit", "start": "node build/app.js", "test": "true", - "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" }, "author": "Heds Simons ", "repository": { @@ -36,7 +36,7 @@ "@types/lodash": "4.14.202", "@types/node": "^20.6.0", "@types/request-promise": "4.1.51", - "husky": "^8.0.1", + "husky": "^9.0.0", "lint-staged": "15.2.2", "typescript": "5.3.3" },