Files
hapi/server/package.json
T
weishu 1028547a3a feat(cli): add single executable with embedded web assets support
Implement support for bundling web assets into CLI single executable binaries.
When built with --with-web-assets, the executable includes the compiled web
application and serves it directly without file system access. A stub generator
creates empty manifests for normal builds to maintain compatibility.

Key changes:
- Add --with-web-assets flag to build-executable.ts with manifest validation
- Generate embeddedAssets.ts manifest from web/dist during build
- Serve embedded assets in web server with fallback to file system
- Add hapi server subcommand to start API + web server
- Include server sources in CLI tsconfig for compilation scope
- Add workspace-level build:single-exe scripts for production builds
2025-12-21 08:42:00 +08:00

30 lines
879 B
JSON

{
"name": "hapi-server",
"private": true,
"version": "0.1.0",
"description": "Telegram Bot client for Happy - control Claude Code sessions",
"author": "Kirill Dubovitskiy",
"license": "MIT",
"type": "module",
"scripts": {
"start": "bun run src/index.ts",
"dev": "bun --watch run src/index.ts",
"typecheck": "tsc --noEmit",
"build": "bun build src/index.ts --outdir dist --target bun",
"generate:embedded-web-assets": "bun run scripts/generate-embedded-web-assets.ts"
},
"dependencies": {
"@socket.io/bun-engine": "^0.1.0",
"grammy": "^1.31.3",
"hono": "^4.8.0",
"jose": "^5.10.0",
"socket.io": "^4.8.1",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/node": ">=20",
"bun-types": "^1.2.21",
"typescript": "^5"
}
}