**@esengine/server** - 游戏服务器框架 | Game server framework - 文件路由系统 | File-based routing - Room 生命周期 (onCreate, onJoin, onLeave, onTick, onDispose) - @onMessage 装饰器 | Message handler decorator - 玩家管理与断线处理 | Player management with auto-disconnect - 内置 JoinRoom/LeaveRoom API | Built-in room APIs - defineApi/defineMsg 类型安全辅助函数 | Type-safe helpers **create-esengine-server** - CLI 脚手架工具 | CLI scaffolding - 生成 shared/server/client 项目结构 | Project structure - 类型安全的协议定义 | Type-safe protocol definitions - 包含 GameRoom 示例 | Example implementation **其他 | Other** - 删除旧的 network-server 包 | Remove old network-server - 更新服务器文档 | Update server documentation
51 lines
997 B
JSON
51 lines
997 B
JSON
{
|
|
"name": "@esengine/server",
|
|
"version": "1.0.0",
|
|
"description": "Game server framework for ESEngine with file-based routing",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"module": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"module.json"
|
|
],
|
|
"scripts": {
|
|
"build": "tsup",
|
|
"build:watch": "tsup --watch",
|
|
"dev": "tsup --watch",
|
|
"type-check": "tsc --noEmit",
|
|
"clean": "rimraf dist"
|
|
},
|
|
"dependencies": {
|
|
"@esengine/rpc": "workspace:*"
|
|
},
|
|
"peerDependencies": {
|
|
"ws": ">=8.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.0.0",
|
|
"@types/ws": "^8.5.13",
|
|
"rimraf": "^5.0.0",
|
|
"tsup": "^8.0.0",
|
|
"typescript": "^5.7.0",
|
|
"ws": "^8.18.0"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"keywords": [
|
|
"esengine",
|
|
"game-server",
|
|
"rpc",
|
|
"websocket",
|
|
"ecs"
|
|
]
|
|
}
|