feat(cli): add binary build support for interactive CLI
Add esbuild-based build script to bundle CLI tools into standalone binaries that can be run directly with node. The built binaries externalize dependencies to keep bundle size small and avoid bundling issues with native modules. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
4f50b3b399
commit
7f25378e4b
4 changed files with 86 additions and 0 deletions
|
|
@ -4,6 +4,12 @@
|
|||
"description": "",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
"bin": {
|
||||
"multica": "./bin/multica-interactive.mjs",
|
||||
"multica-interactive": "./bin/multica-interactive.mjs",
|
||||
"multica-cli": "./bin/multica-cli.mjs",
|
||||
"multica-profile": "./bin/multica-profile.mjs"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "tsx src/index.ts",
|
||||
"agent:cli": "tsx src/agent/cli.ts",
|
||||
|
|
@ -15,6 +21,7 @@
|
|||
"dev:desktop": "pnpm --filter @multica/desktop dev",
|
||||
"build": "turbo build",
|
||||
"build:sdk": "pnpm --filter @multica/sdk build",
|
||||
"build:cli": "node scripts/build-cli.js",
|
||||
"start": "node dist/index.js",
|
||||
"typecheck": "turbo typecheck",
|
||||
"test": "vitest run",
|
||||
|
|
@ -30,6 +37,7 @@
|
|||
"@types/turndown": "^5.0.6",
|
||||
"@types/uuid": "^11.0.0",
|
||||
"@vitest/coverage-v8": "^4.0.18",
|
||||
"esbuild": "^0.27.2",
|
||||
"tsx": "^4.21.0",
|
||||
"turbo": "^2.3.4",
|
||||
"typescript": "catalog:",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue