chore: update TypeScript type-check command and add native-preview dependency for faster performance (#29179)

This commit is contained in:
zhsama
2025-12-05 14:42:37 +08:00
committed by GitHub
parent b509661b08
commit c3003dd47d
4 changed files with 81 additions and 6 deletions

View File

@@ -61,13 +61,13 @@ if $web_modified; then
lint-staged
if $web_ts_modified; then
echo "Running TypeScript type-check"
if ! pnpm run type-check; then
echo "Type check failed. Please run 'pnpm run type-check' to fix the errors."
echo "Running TypeScript type-check:tsgo"
if ! pnpm run type-check:tsgo; then
echo "Type check failed. Please run 'pnpm run type-check:tsgo' to fix the errors."
exit 1
fi
else
echo "No staged TypeScript changes detected, skipping type-check"
echo "No staged TypeScript changes detected, skipping type-check:tsgo"
fi
echo "Running unit tests check"