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:
2
build.sh
2
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."
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user