From 20129a1ac7a6b0f1e1f9694aab5e8102463d51ba Mon Sep 17 00:00:00 2001 From: Luiz Costa Date: Tue, 18 Nov 2025 10:19:13 -0300 Subject: [PATCH] build: add typescript compilation step before frontend build The build script now runs TypeScript compilation (tsc) before the frontend build to catch type errors earlier in the process. Also downgraded eslint to v8.57.0 for compatibility reasons. --- build.sh | 2 +- frontend/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 2869f553..e5032907 100644 --- a/build.sh +++ b/build.sh @@ -8,7 +8,7 @@ cd frontend npm install echo "🔨 Construindo o frontend para produção..." -npm run build +npx tsc && npm run build if [ $? -ne 0 ]; then echo "❌ Falha no build do frontend. Abortando." diff --git a/frontend/package.json b/frontend/package.json index c7a33261..a19c26b9 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -21,7 +21,7 @@ "@typescript-eslint/eslint-plugin": "^8.0.0", "@typescript-eslint/parser": "^8.0.0", "@vitejs/plugin-react": "^4.2.1", - "eslint": "^9.0.0", + "eslint": "^8.57.0", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.4.5", "typescript": "^5.9.3",