Update package dependencies, refactor TypeScript configuration, and enhance API server code with improved type definitions. Modify GitHub Actions workflow to verify API build success and streamline build scripts for better maintainability.

This commit is contained in:
2025-08-20 04:03:11 +01:00
parent d0c165eba4
commit 1759bd623a
7 changed files with 804 additions and 52 deletions

View File

@ -26,16 +26,17 @@ jobs:
- name: Run linting
run: npm run lint
- name: Build frontend
run: npm run build
env:
VITE_APP_NAME: ScriptShare
VITE_APP_URL: https://scriptshare.example.com
VITE_ANALYTICS_ENABLED: false
- name: Build API
- name: Build API (TypeScript)
run: npm run build:api
- name: Verify API build
run: |
if [ ! -f "dist/server.js" ]; then
echo "API build failed - server.js not found"
exit 1
fi
echo "✅ API TypeScript build successful"
docker-build:
runs-on: ubuntu-latest
needs: test