Files
open-design/package.json
T
pftom 89d92d8ae0 feat(dev): auto-switch ports on dev:all when defaults are busy
Adds a small launcher (scripts/dev-all.mjs) that probes free ports
for the daemon (OD_PORT, default 7456) and Vite (VITE_PORT, default
5173) before invoking concurrently, so a stray process holding
either port no longer breaks the boot. The resolved ports are
exported into the child env; vite.config.ts now reads VITE_PORT to
keep its dev server and /api proxy aligned with the daemon's actual
port.

Made-with: Cursor
2026-04-28 22:19:42 +08:00

45 lines
1.1 KiB
JSON

{
"name": "open-design",
"version": "0.1.0",
"private": true,
"type": "module",
"description": "Local-first design product: detects your installed code-agent CLI, runs design skills + design systems, streams artifacts into a sandboxed preview.",
"license": "Apache-2.0",
"bin": {
"od": "./daemon/cli.js"
},
"scripts": {
"daemon": "node daemon/cli.js --no-open",
"dev": "vite",
"dev:all": "node scripts/dev-all.mjs",
"build": "tsc -b && vite build",
"preview": "vite preview",
"typecheck": "tsc -b --noEmit",
"start": "npm run build && node daemon/cli.js"
},
"dependencies": {
"@anthropic-ai/sdk": "^0.32.1",
"better-sqlite3": "^11.10.0",
"express": "^4.19.2",
"multer": "^1.4.5-lts.1",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.4",
"concurrently": "^9.0.1",
"typescript": "^5.6.3",
"vite": "^5.4.11"
},
"engines": {
"node": ">=18"
},
"pnpm": {
"onlyBuiltDependencies": [
"better-sqlite3"
]
}
}