fix(cli): 修复 Cocos Creator 3.x 项目检测逻辑 (#352)

* docs(network): 添加网络模块文档和 CLI 支持

- 添加中英文网络模块文档
- 将 network、network-protocols、network-server 加入 CLI 模块列表

* fix(cli): 修复 Cocos Creator 3.x 项目检测逻辑

- 重构检测代码,提取通用辅助函数
- 优先检查 package.json 中的 creator.version 字段
- 添加 .creator 和 settings 目录检测
- 使用 getMajorVersion 统一版本号解析

* chore: add changeset
This commit is contained in:
YHH
2025-12-26 23:14:23 +08:00
committed by GitHub
parent 1e31e9101b
commit 33e98b9a75
5 changed files with 1377 additions and 46 deletions

View File

@@ -0,0 +1,9 @@
---
"@esengine/cli": patch
---
fix(cli): 修复 Cocos Creator 3.x 项目检测逻辑
- 优先检查 package.json 中的 creator.version 字段
- 添加 .creator 和 settings 目录检测
- 重构检测代码,提取通用辅助函数