Skip to content

Commit

Permalink
feat: update pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
iavl committed Oct 12, 2024
1 parent 8bfb3c5 commit 69a9c7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ yarn solhint
# unit test
echo "Running test"
yarn test

echo "Running pre-commit"
yarn pre-commit
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"upgradeable": "make upgradeable",
"mythril": "make mythril",
"storage-layout": "make storage-layout",
"prepare": "husky install"
"prepare": "husky install",
"pre-commit": "yarn abi && git diff --cached --name-only --diff-filter=ACM | grep -E '\\.abi\\.json$' | xargs -r git add"
}
}

0 comments on commit 69a9c7e

Please sign in to comment.