update-nodejs-dependencies.bat 560 B

123456789101112131415161718192021222324252627282930
  1. @echo off
  2. chcp 65001 >nul
  3. title Update Node.js Dependencies List
  4. cd /d "%~dp0\..\.."
  5. REM Check if node_modules exists
  6. if not exist "node_modules" (
  7. echo [ERROR] node_modules not found
  8. echo Please run npm install first to install dependencies.
  9. echo.
  10. pause
  11. exit /b 1
  12. )
  13. REM Run Node.js script to compare and update dependencies.txt
  14. node "%~dp0update-nodejs-dependencies.js"
  15. if errorlevel 1 (
  16. echo.
  17. echo [ERROR] Update failed
  18. echo.
  19. pause
  20. exit /b 1
  21. ) else (
  22. echo.
  23. echo [OK] Update completed
  24. echo.
  25. pause
  26. )