XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFESpaceNinjaServer

Revert "chore: use 'npm ci' in update and start script (#4274)"

This reverts commit 45625df473053c89486a830cb16afc79fcd34cee.

1bcf6349
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

2 个文件 +6 -4
Modified UPDATE AND START SERVER.bat +3 -2
@@ -3,6 +3,7 @@
3 3 echo Updating SpaceNinjaServer...
4 4 git fetch --prune
5 5 if %errorlevel% == 0 (
6 git restore package-lock.json
6 7 git stash
7 8 git checkout -f origin/main
8 9
@@ -16,10 +17,10 @@ if %errorlevel% == 0 (
16 17 echo Updating dependencies...
17 18 node scripts/raw-precheck.js > NUL
18 19 if %errorlevel% == 0 (
19 call npm ci --omit=dev --omit=optional --no-audit
20 call npm i --omit=dev --omit=optional --no-audit
20 21 call npm run raw
21 22 ) else (
22 call npm ci --omit=dev --no-audit
23 call npm i --omit=dev --no-audit
23 24 call npm run build
24 25 if %errorlevel% == 0 (
25 26 call npm run start
Modified UPDATE AND START SERVER.sh +3 -2
@@ -3,6 +3,7 @@
3 3 echo "Updating SpaceNinjaServer..."
4 4 git fetch --prune
5 5 if [ $? -eq 0 ]; then
6 git restore package-lock.json
6 7 git stash
7 8 git checkout -f origin/main
8 9
@@ -16,10 +17,10 @@ if [ $? -eq 0 ]; then
16 17 echo "Updating dependencies..."
17 18 node scripts/raw-precheck.js > /dev/null
18 19 if [ $? -eq 0 ]; then
19 npm ci --omit=dev --omit=optional --no-audit
20 npm i --omit=dev --omit=optional --no-audit
20 21 npm run raw
21 22 else
22 npm ci --omit=dev --no-audit
23 npm i --omit=dev --no-audit
23 24 npm run build
24 25 if [ $? -eq 0 ]; then
25 26 npm run start