Fix: Add .js files to .gitignore and simplify deploy script

This commit is contained in:
mmabdalla 2025-12-29 01:32:06 +02:00
parent 7956762b7e
commit a107f832af
2 changed files with 6 additions and 6 deletions

4
.gitignore vendored
View file

@ -8,6 +8,10 @@ dist/
build/ build/
*.tsbuildinfo *.tsbuildinfo
# Compiled JavaScript (backend)
backend/**/*.js
!backend/**/*.config.js
# Environment variables # Environment variables
.env .env
.env.local .env.local

View file

@ -92,14 +92,10 @@ if exist "%SOURCE_DIR%\package.json" (
echo [OK] Copied package.json echo [OK] Copied package.json
) )
REM Copy backend directory (compiled JS files only, exclude .ts files) REM Copy backend directory (both .ts and .js files will be copied, Node.js uses .js)
if exist "%SOURCE_DIR%\backend" ( if exist "%SOURCE_DIR%\backend" (
xcopy /E /I /Y "%SOURCE_DIR%\backend" "%TARGET_DIR%\backend" >nul xcopy /E /I /Y "%SOURCE_DIR%\backend" "%TARGET_DIR%\backend" >nul
REM Remove TypeScript source files from target echo [OK] Copied backend directory
for /r "%TARGET_DIR%\backend" %%f in (*.ts) do (
if not "%%~nxf"=="*.test.ts" del "%%f"
)
echo [OK] Copied backend directory (JS files)
) )
REM Copy migrations directory REM Copy migrations directory