diff --git a/.husky/commit-msg b/.husky/commit-msg index 314e8214..d468455f 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npx --no-install commitlint --edit $1 \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit index 6b3a9be2..c8d494d5 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,7 +1,4 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - # 1. Build the contracts -# 2. Stage build output -# 3. Lint and stage style improvements +# 2. Stage build output +# 3. Lint and stage style improvements yarn build && npx lint-staged \ No newline at end of file diff --git a/package.json b/package.json index 911a004b..738c1d49 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "lint:natspec": "npx @defi-wonderland/natspec-smells --config natspec-smells.config.js", "lint:sol-logic": "solhint -c .solhint.json 'src/**/*.sol' 'script/**/*.sol'", "lint:sol-tests": "solhint -c .solhint.tests.json 'test/**/*.sol'", - "prepare": "husky install", + "prepare": "husky", "test": "forge test -vvv", "test:fuzz": "echidna test/invariants/fuzz/Greeter.t.sol --contract InvariantGreeter --corpus-dir test/invariants/fuzz/echidna_coverage/ --test-mode assertion", "test:integration": "forge test --match-contract Integration -vvv", @@ -40,7 +40,7 @@ "@defi-wonderland/natspec-smells": "1.1.3", "forge-std": "github:foundry-rs/forge-std#1.9.2", "halmos-cheatcodes": "github:a16z/halmos-cheatcodes#c0d8655", - "husky": ">=8", + "husky": ">=9", "lint-staged": ">=10", "solhint-community": "4.0.0", "sort-package-json": "2.10.0" diff --git a/yarn.lock b/yarn.lock index 8fc2ddf7..59ef3222 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1003,10 +1003,10 @@ human-signals@^5.0.0: resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-5.0.0.tgz#42665a284f9ae0dade3ba41ebc37eb4b852f3a28" integrity sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ== -husky@>=8: - version "9.0.11" - resolved "https://registry.yarnpkg.com/husky/-/husky-9.0.11.tgz#fc91df4c756050de41b3e478b2158b87c1e79af9" - integrity sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw== +husky@>=9: + version "9.1.6" + resolved "https://registry.yarnpkg.com/husky/-/husky-9.1.6.tgz#e23aa996b6203ab33534bdc82306b0cf2cb07d6c" + integrity sha512-sqbjZKK7kf44hfdE94EoX8MZNk0n7HeW37O4YrVGCF4wzgQjp+akPAkfUK5LZ6KuR/6sqeAVuXHji+RzQgOn5A== ignore@^5.2.4: version "5.3.1"