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
2025-11-18 10:19:13 -03:00
parent f8360acab3
commit 20129a1ac7
2 changed files with 2 additions and 2 deletions

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."

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",