Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/sweet-bugs-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"roo-cline": patch
---

Automatically generate .d.ts from zod schemas
11 changes: 10 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,13 @@ else
npx_cmd="npx"
fi

"$npx_cmd" lint-staged
npm run generate-types

# Check if src/exports/types.ts has unstaged changes after running the script.
if [ -n "$(git diff --name-only src/exports/types.ts)" ]; then
echo "Error: There are unstaged changes to src/exports/types.ts after running 'npm run generate-types'."
echo "Please review and stage the changes before committing."
exit 1
fi

"$npx_cmd" lint-staged
Loading
Loading