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

SpaceNinjaServer

A simple server for a small space ninja game

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

XFEstudio/SpaceNinjaServer

chore: move dependencies only required for build to 'optional' (#2707)

This is a bit of a misnomer because npm installs them just like dev deps unless an appropriate --omit flag is added. Anyway, these deps are ~55 MB, so being able to omit that chunk for raw running might be good. Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2707 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

5396eefe
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

2 个文件 +38 -17
Modified package-lock.json +30 -11
@@ -9,11 +9,6 @@
9 9 "version": "0.1.0",
10 10 "license": "GNU",
11 11 "dependencies": {
12 "@types/express": "^5",
13 "@types/morgan": "^1.9.9",
14 "@types/websocket": "^1.0.10",
15 "@types/ws": "^8.18.1",
16 "@typescript/native-preview": "^7.0.0-dev.20250625.1",
17 12 "chokidar": "^4.0.3",
18 13 "crc-32": "^1.2.2",
19 14 "express": "^5",
@@ -21,7 +16,6 @@
21 16 "mongoose": "^8.11.0",
22 17 "morgan": "^1.10.0",
23 18 "ncp": "^2.0.0",
24 "typescript": "^5.7",
25 19 "undici": "^7.10.0",
26 20 "warframe-public-export-plus": "^0.5.83",
27 21 "warframe-riven-info": "^0.1.2",
@@ -38,6 +32,14 @@
38 32 "eslint-plugin-prettier": "^5.2.5",
39 33 "prettier": "^3.5.3",
40 34 "tree-kill": "^1.2.2"
35 },
36 "optionalDependencies": {
37 "@types/express": "^5",
38 "@types/morgan": "^1.9.9",
39 "@types/websocket": "^1.0.10",
40 "@types/ws": "^8.18.1",
41 "@typescript/native-preview": "^7.0.0-dev.20250625.1",
42 "typescript": "^5.7"
41 43 }
42 44 },
43 45 "node_modules/@colors/colors": {
@@ -349,6 +351,7 @@
349 351 "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.6.tgz",
350 352 "integrity": "sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g==",
351 353 "license": "MIT",
354 "optional": true,
352 355 "dependencies": {
353 356 "@types/connect": "*",
354 357 "@types/node": "*"
@@ -359,6 +362,7 @@
359 362 "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz",
360 363 "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==",
361 364 "license": "MIT",
365 "optional": true,
362 366 "dependencies": {
363 367 "@types/node": "*"
364 368 }
@@ -368,6 +372,7 @@
368 372 "resolved": "https://registry.npmjs.org/@types/express/-/express-5.0.3.tgz",
369 373 "integrity": "sha512-wGA0NX93b19/dZC1J18tKWVIYWyyF2ZjT9vin/NRu0qzzvfVzWjs04iq2rQ3H65vCTQYlRqs3YHfY7zjdV+9Kw==",
370 374 "license": "MIT",
375 "optional": true,
371 376 "dependencies": {
372 377 "@types/body-parser": "*",
373 378 "@types/express-serve-static-core": "^5.0.0",
@@ -379,6 +384,7 @@
379 384 "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-5.0.7.tgz",
380 385 "integrity": "sha512-R+33OsgWw7rOhD1emjU7dzCDHucJrgJXMA5PYCzJxVil0dsyx5iBEPHqpPfiKNJQb7lZ1vxwoLR4Z87bBUpeGQ==",
381 386 "license": "MIT",
387 "optional": true,
382 388 "dependencies": {
383 389 "@types/node": "*",
384 390 "@types/qs": "*",
@@ -390,7 +396,8 @@
390 396 "version": "2.0.5",
391 397 "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.5.tgz",
392 398 "integrity": "sha512-r8Tayk8HJnX0FztbZN7oVqGccWgw98T/0neJphO91KkmOzug1KkofZURD4UaD5uH8AqcFLfdPErnBod0u71/qg==",
393 "license": "MIT"
399 "license": "MIT",
400 "optional": true
394 401 },
395 402 "node_modules/@types/json5": {
396 403 "version": "0.0.29",
@@ -403,13 +410,15 @@
403 410 "version": "1.3.5",
404 411 "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz",
405 412 "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==",
406 "license": "MIT"
413 "license": "MIT",
414 "optional": true
407 415 },
408 416 "node_modules/@types/morgan": {
409 417 "version": "1.9.10",
410 418 "resolved": "https://registry.npmjs.org/@types/morgan/-/morgan-1.9.10.tgz",
411 419 "integrity": "sha512-sS4A1zheMvsADRVfT0lYbJ4S9lmsey8Zo2F7cnbYjWHP67Q0AwMYuuzLlkIM2N8gAbb9cubhIVFwcIN2XyYCkA==",
412 420 "license": "MIT",
421 "optional": true,
413 422 "dependencies": {
414 423 "@types/node": "*"
415 424 }
@@ -419,6 +428,7 @@
419 428 "resolved": "https://registry.npmjs.org/@types/node/-/node-24.3.0.tgz",
420 429 "integrity": "sha512-aPTXCrfwnDLj4VvXrm+UUCQjNEvJgNA8s5F1cvwQU+3KNltTOkBm1j30uNLyqqPNe7gE3KFzImYoZEfLhp4Yow==",
421 430 "license": "MIT",
431 "optional": true,
422 432 "dependencies": {
423 433 "undici-types": "~7.10.0"
424 434 }
@@ -427,19 +437,22 @@
427 437 "version": "6.14.0",
428 438 "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.14.0.tgz",
429 439 "integrity": "sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ==",
430 "license": "MIT"
440 "license": "MIT",
441 "optional": true
431 442 },
432 443 "node_modules/@types/range-parser": {
433 444 "version": "1.2.7",
434 445 "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz",
435 446 "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==",
436 "license": "MIT"
447 "license": "MIT",
448 "optional": true
437 449 },
438 450 "node_modules/@types/send": {
439 451 "version": "0.17.5",
440 452 "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.5.tgz",
441 453 "integrity": "sha512-z6F2D3cOStZvuk2SaP6YrwkNO65iTZcwA2ZkSABegdkAh/lf+Aa/YQndZVfmEXT5vgAp6zv06VQ3ejSVjAny4w==",
442 454 "license": "MIT",
455 "optional": true,
443 456 "dependencies": {
444 457 "@types/mime": "^1",
445 458 "@types/node": "*"
@@ -450,6 +463,7 @@
450 463 "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.8.tgz",
451 464 "integrity": "sha512-roei0UY3LhpOJvjbIP6ZZFngyLKl5dskOtDhxY5THRSpO+ZI+nzJ+m5yUMzGrp89YRa7lvknKkMYjqQFGwA7Sg==",
452 465 "license": "MIT",
466 "optional": true,
453 467 "dependencies": {
454 468 "@types/http-errors": "*",
455 469 "@types/node": "*",
@@ -473,6 +487,7 @@
473 487 "resolved": "https://registry.npmjs.org/@types/websocket/-/websocket-1.0.10.tgz",
474 488 "integrity": "sha512-svjGZvPB7EzuYS94cI7a+qhwgGU1y89wUgjT6E2wVUfmAGIvRfT7obBvRtnhXCSsoMdlG4gBFGE7MfkIXZLoww==",
475 489 "license": "MIT",
490 "optional": true,
476 491 "dependencies": {
477 492 "@types/node": "*"
478 493 }
@@ -491,6 +506,7 @@
491 506 "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz",
492 507 "integrity": "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==",
493 508 "license": "MIT",
509 "optional": true,
494 510 "dependencies": {
495 511 "@types/node": "*"
496 512 }
@@ -735,6 +751,7 @@
735 751 "resolved": "https://registry.npmjs.org/@typescript/native-preview/-/native-preview-7.0.0-dev.20250826.1.tgz",
736 752 "integrity": "sha512-+NuzOfk/lu6pLYSCio+R7uzJ9pfOasc1fshxVmLp6wgcB8yuUYYvBaT7CoHapUnNBYZXkJ9u0UOECnq3dbzgSQ==",
737 753 "license": "Apache-2.0",
754 "optional": true,
738 755 "bin": {
739 756 "tsgo": "bin/tsgo.js"
740 757 },
@@ -5397,6 +5414,7 @@
5397 5414 "version": "5.9.2",
5398 5415 "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.2.tgz",
5399 5416 "integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==",
5417 "devOptional": true,
5400 5418 "license": "Apache-2.0",
5401 5419 "bin": {
5402 5420 "tsc": "bin/tsc",
@@ -5438,7 +5456,8 @@
5438 5456 "version": "7.10.0",
5439 5457 "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.10.0.tgz",
5440 5458 "integrity": "sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==",
5441 "license": "MIT"
5459 "license": "MIT",
5460 "optional": true
5442 5461 },
5443 5462 "node_modules/unpipe": {
5444 5463 "version": "1.0.0",
Modified package.json +8 -6
@@ -28,11 +28,6 @@
28 28 "license": "GNU",
29 29 "type": "module",
30 30 "dependencies": {
31 "@types/express": "^5",
32 "@types/morgan": "^1.9.9",
33 "@types/websocket": "^1.0.10",
34 "@types/ws": "^8.18.1",
35 "@typescript/native-preview": "^7.0.0-dev.20250625.1",
36 31 "chokidar": "^4.0.3",
37 32 "crc-32": "^1.2.2",
38 33 "express": "^5",
@@ -40,7 +35,6 @@
40 35 "mongoose": "^8.11.0",
41 36 "morgan": "^1.10.0",
42 37 "ncp": "^2.0.0",
43 "typescript": "^5.7",
44 38 "undici": "^7.10.0",
45 39 "warframe-public-export-plus": "^0.5.83",
46 40 "warframe-riven-info": "^0.1.2",
@@ -48,6 +42,14 @@
48 42 "winston-daily-rotate-file": "^5.0.0",
49 43 "ws": "^8.18.2"
50 44 },
45 "optionalDependencies": {
46 "@types/express": "^5",
47 "@types/morgan": "^1.9.9",
48 "@types/websocket": "^1.0.10",
49 "@types/ws": "^8.18.1",
50 "@typescript/native-preview": "^7.0.0-dev.20250625.1",
51 "typescript": "^5.7"
52 },
51 53 "devDependencies": {
52 54 "@typescript-eslint/eslint-plugin": "^8.28.0",
53 55 "@typescript-eslint/parser": "^8.28.0",