Skip to content

Commit 0414342

Browse files
committed
docs(CLAUDE.md): clarify that desktop:build produces the Electron bundle
npm run app:build compiles TypeScript workspaces but does not run electron-vite, so out/main/index.js is never produced. app:start (electron out/main/index.js) therefore fails unless desktop:build ran first. Document the correct three-step production flow. Refs #144 Co-Authored-By: copilot-pull-request-reviewer (via PR comment)
1 parent 6d72d3b commit 0414342

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

CLAUDE.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ npm install
1818
npm run app:dev # delegates to desktop:dev — equivalent to: npm run desktop:dev
1919

2020
# Production build then launch
21-
npm run app:build # compiles shared → desktop-main → web TypeScript
22-
npm run app:start # starts the built Electron app
21+
npm run app:build # compiles shared → desktop-main → web TypeScript (not the Electron bundle)
22+
npm run desktop:build # electron-vite build → produces out/main, out/preload, out/renderer
23+
npm run app:start # starts the built Electron app (requires desktop:build to have run first)
2324

2425
# Electron desktop app — electron-vite drives three pipelines (main/preload/renderer)
2526
# configured in electron.vite.config.ts; outputs land in out/main, out/preload, out/renderer

0 commit comments

Comments
 (0)