返回提交历史
Modified
UPDATE AND START SERVER.bat
+2
-3
Modified
UPDATE AND START SERVER.sh
+2
-3
XFEstudio/SpaceNinjaServer
chore: use 'npm ci' in update and start script (#4274)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/4274 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
45625df4
代码差异
2 个文件
+4
-6
@@ -3,7 +3,6 @@
3
3
echo Updating SpaceNinjaServer...
4
4
git fetch --prune
5
5
if %errorlevel% == 0 (
6
git restore package-lock.json
7
6
git stash
8
7
git checkout -f origin/main
9
8
@@ -17,10 +16,10 @@ if %errorlevel% == 0 (
17
16
echo Updating dependencies...
18
17
node scripts/raw-precheck.js > NUL
19
18
if %errorlevel% == 0 (
20
call npm i --omit=dev --omit=optional --no-audit
19
call npm ci --omit=dev --omit=optional --no-audit
21
20
call npm run raw
22
21
) else (
23
call npm i --omit=dev --no-audit
22
call npm ci --omit=dev --no-audit
24
23
call npm run build
25
24
if %errorlevel% == 0 (
26
25
call npm run start
@@ -3,7 +3,6 @@
3
3
echo "Updating SpaceNinjaServer..."
4
4
git fetch --prune
5
5
if [ $? -eq 0 ]; then
6
git restore package-lock.json
7
6
git stash
8
7
git checkout -f origin/main
9
8
@@ -17,10 +16,10 @@ if [ $? -eq 0 ]; then
17
16
echo "Updating dependencies..."
18
17
node scripts/raw-precheck.js > /dev/null
19
18
if [ $? -eq 0 ]; then
20
npm i --omit=dev --omit=optional --no-audit
19
npm ci --omit=dev --omit=optional --no-audit
21
20
npm run raw
22
21
else
23
npm i --omit=dev --no-audit
22
npm ci --omit=dev --no-audit
24
23
npm run build
25
24
if [ $? -eq 0 ]; then
26
25
npm run start