Files
fusion/packages/desktop/package.json
gsxdsm abd596b700 fix: pack full desktop dependency closure + resolve bun/desktop plugin loading on Windows
Desktop "Local" mode crashed with ERR_MODULE_NOT_FOUND because electron-builder's
pnpm collector drops `deduped` subtrees, so engine's transitive closure
(@modelcontextprotocol/sdk, pi-ai provider SDKs, etc.) was never packed. Stage the
complete flat prod closure with `pnpm deploy --legacy --config.node-linker=hoisted`
and package it via `electron-builder --projectDir deploy`, bypassing the lossy
collector entirely.

Also make the dashboard-imported example plugins loadable under plain Node (the
Electron main runtime): cursor/droid/roadmap now expose compiled `dist` on the
`import` condition (keeping `source`→src for the bun CLI) and are built during the
desktop build. Add `source` conditions to paperclip/agent-browser/even-cards/
even-realities-glasses/whatsapp-chat so the bun `--conditions=source` Windows CLI
compile resolves them from source.

Validated on macOS: @fusion/core|engine|dashboard import cleanly from the staged
deploy; packing yields a complete 705-package asar; bun-windows-x64 cross-compiles
with all plugin dist removed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-01 20:40:02 -07:00

64 lines
1.8 KiB
JSON

{
"name": "@fusion/desktop",
"productName": "Fusion",
"version": "0.53.1",
"license": "MIT",
"author": {
"name": "Runfusion",
"email": "support@runfusion.ai"
},
"description": "Fusion desktop: Electron wrapper around the Fusion dashboard for macOS, Windows, and Linux.",
"homepage": "https://github.com/Runfusion/Fusion#readme",
"repository": {
"type": "git",
"url": "https://github.com/Runfusion/Fusion",
"directory": "packages/desktop"
},
"bugs": {
"url": "https://github.com/Runfusion/Fusion/issues"
},
"private": true,
"type": "module",
"main": "dist/main.js",
"engines": {
"node": ">=22.5.0"
},
"scripts": {
"dev": "tsx scripts/dev.ts",
"build": "tsx scripts/build.ts",
"test": "tsx scripts/test.ts",
"typecheck": "tsc --noEmit",
"generate:icons": "tsx scripts/generate-icons.ts",
"pack": "electron-builder --projectDir deploy --dir",
"dist": "electron-builder --projectDir deploy",
"dist:win": "electron-builder --projectDir deploy --win",
"dist:mac": "electron-builder --projectDir deploy --mac",
"dist:linux": "electron-builder --projectDir deploy --linux"
},
"dependencies": {
"@fusion/core": "workspace:*",
"@fusion/dashboard": "workspace:*",
"@fusion/engine": "workspace:*",
"electron-updater": "^6.6.0",
"ms": "^2.1.3"
},
"devDependencies": {
"@testing-library/react": "^16.3.2",
"@types/node": "^22.0.0",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"@vitest/coverage-v8": "^4.1.0",
"electron": "^35.0.0",
"electron-builder": "^26.0.0",
"esbuild": "^0.25.12",
"jsdom": "^29.0.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"sharp": "^0.33.0",
"tsx": "^4.19.0",
"typescript": "^5.7.0",
"vite": "^6.0.0",
"vitest": "^4.1.0"
}
}