chore: use raw running in update and start script if node is new enough #2749

Merged
Sainan merged 1 commits from script-raw into main 2025-09-04 23:42:46 -07:00
2 changed files with 20 additions and 10 deletions

View File

@ -14,13 +14,18 @@ if %errorlevel% == 0 (
) )
echo Updating dependencies... echo Updating dependencies...
node scripts/raw-precheck.js > NUL
if %errorlevel% == 0 (
call npm i --omit=dev --omit=optional
call npm run raw
) else (
call npm i --omit=dev call npm i --omit=dev
call npm run build call npm run build
if %errorlevel% == 0 ( if %errorlevel% == 0 (
call npm run start call npm run start
echo SpaceNinjaServer seems to have crashed.
) )
)
echo SpaceNinjaServer seems to have crashed.
) )
:a :a

View File

@ -14,11 +14,16 @@ if [ $? -eq 0 ]; then
fi fi
echo "Updating dependencies..." echo "Updating dependencies..."
node scripts/raw-precheck.js > /dev/null
if [ $? -eq 0 ]; then
npm i --omit=dev --omit=optional
npm run raw
else
npm i --omit=dev npm i --omit=dev
npm run build npm run build
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
npm run start npm run start
echo "SpaceNinjaServer seems to have crashed."
fi fi
fi
echo "SpaceNinjaServer seems to have crashed."
fi fi