Files
youle_cocos/cocoscreator_projects/package.json
T
joywayerandClaude Opus 5 134f4c877c feat(tools): build-game 构建流水线
版本校验 → 实体化 → 皮肤合成 → 构建 → build-info。任一校验不过
即中止且不触发构建。runBuild 为注入点, 除真构建外全流程可单测。
Cocos 可执行路径只从 COCOS_CREATOR 环境变量取, 缺失显式报错。

同时补入 check-skin.mjs 的 process.argv[1] 守卫,与仓库其余脚本一致。

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-27 22:08:48 +08:00

25 lines
748 B
JSON

{
"name": "youle-monorepo-tools",
"private": true,
"type": "module",
"version": "0.1.0",
"scripts": {
"test": "node --test scripts/test/",
"setup-links": "node scripts/setup-links.mjs",
"new-game": "node scripts/new-game.mjs",
"check-cocos": "node scripts/check-cocos-version.mjs",
"bump-cocos": "node scripts/bump-cocos.mjs",
"check-skin": "node scripts/check-skin.mjs",
"build-game": "node scripts/build-game.mjs",
"test:framework": "node scripts/run-framework-tests.mjs",
"typecheck:framework": "tsc -p tsconfig.framework.json --noEmit"
},
"devDependencies": {
"@types/node": "^26.0.1",
"@types/ws": "^8.18.1",
"tsx": "^4.22.4",
"typescript": "^6.0.3",
"ws": "^8.21.0"
}
}