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.
This commit is contained in:
Luiz Costa committed 2025-11-18 10:19:13 -03:00
1 parent f8360acab3
commit 20129a1ac7
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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."
+1 -1
View File
@@ -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",