Files
ark-stronghold-protocol/package.json
T
anAtheist987 1f147a288f feedback7 G-TOOLS: tools/ci.mjs and npm run ci run the CI checks locally (PR #367 by @anAtheist987)
Applied as-is. tools/ci.mjs runs the checks already listed in .github/workflows/ci.yml, in that order, and skips checkout, setup-node and npm ci. Children are spawned with process.execPath, not a shell. test/ci.test.js keeps the step list, smoke script, job env and package.json scripts in step with the workflow.

Tests: node --test test/ci.test.js — 8 pass, 0 fail. npm run ci was not run (it installs and runs the suite).
2026-10-08 18:48:16 +08:00

64 lines
1.9 KiB
JSON

{
"name": "stronghold-protocol-alliance",
"version": "0.2.2-dev",
"private": true,
"description": "明日方舟「卫戍协议:盟约」非官方同人联机网页复刻(1–4 人合作,Node.js 服务器 + 浏览器客户端)",
"license": "GPL-3.0-or-later",
"homepage": "https://github.com/sganggs/Stronghold-Protocol#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/sganggs/Stronghold-Protocol.git"
},
"bugs": {
"url": "https://github.com/sganggs/Stronghold-Protocol/issues"
},
"keywords": [
"arknights",
"auto-chess",
"tower-defense",
"co-op",
"browser-game",
"fan-game"
],
"type": "module",
"main": "server/index.js",
"scripts": {
"start": "node server/index.js",
"dev": "node --watch server/index.js",
"test": "node --test",
"golden": "node tools/golden.mjs",
"golden:update": "node tools/golden.mjs --update",
"vendor": "node tools/vendor.mjs",
"build-data": "node tools/build-data.mjs",
"assets": "node tools/vendor.mjs && node tools/fetch-assets.mjs",
"postinstall": "node tools/vendor.mjs",
"setup": "node tools/setup.mjs",
"doctor": "node tools/doctor.mjs",
"launch": "node scripts/launch.mjs",
"lint": "eslint .",
"typecheck": "tsc --noEmit --checkJs -p jsconfig.json",
"check:imports": "node tools/check-imports.mjs",
"ci": "node tools/ci.mjs",
"package": "node tools/package.mjs",
"package:lite": "node tools/package.mjs --lite"
},
"engines": {
"node": ">=22"
},
"dependencies": {
"htm": "^3.1.1",
"pixi-spine": "^4.0.6",
"pixi.js": "^7.4.2",
"preact": "^10.29.8",
"three": "^0.186.1",
"ws": "^8.22.0"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"eslint": "^10.12.0",
"globals": "^17.13.0",
"puppeteer-core": "^25.12.0",
"typescript": "^5.9.2"
}
}