fix: 修复 typeshare 生成问题

This commit is contained in:
mofeng-git
2026-07-07 00:41:25 +08:00
parent 4806a5e0a9
commit a0ad151fbc
4 changed files with 148 additions and 55 deletions

View File

@@ -20,6 +20,9 @@ typeshare "$PROJECT_ROOT/src" \
--lang=typescript \
--output-file="$OUTPUT_FILE"
# Keep generated output stable for git diff --check.
perl -0pi -e 's/\n+\z/\n/' "$OUTPUT_FILE"
echo ""
echo "TypeScript types generated successfully!"
echo "Output: $OUTPUT_FILE"