-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move codegen-chains logic to pre-commit
- Loading branch information
1 parent
a0e9329
commit aa1574c
Showing
2 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
|
||
if [[ $(git diff --cached --name-only | grep -E 'registry/.+\.chain\.json') ]]; then | ||
bun run scripts/codegen-chains.ts | ||
git add . | ||
git commit --no-verify -m "chore: update generated files" | ||
fi | ||
|
||
bunx pretty-quick --staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters