@echo off
setlocal
cd /d "%~dp0"
echo ============================================================
echo GAPSOE CMS - WINDOWS DEPENDENCY FIX
echo ============================================================
echo.
echo This build uses Tailwind CSS 3 (pure JS/PostCSS path) to avoid
 echo Tailwind v4 native oxide/lightningcss binding failures on Windows.
echo.
if exist .next rmdir /s /q .next
if exist node_modules rmdir /s /q node_modules
if exist package-lock.json del /f /q package-lock.json
call npm.cmd cache verify
if errorlevel 1 goto :error
call npm.cmd install --include=optional
if errorlevel 1 goto :error
echo.
echo [OK] Dependencies installed successfully.
echo Run: npm.cmd run dev
echo.
pause
exit /b 0
:error
echo.
echo [ERROR] npm install failed. Copy the red error and send it.
echo.
pause
exit /b 1
