Commit cbdacfa
committed
🤖 Fix npm CLI bin: Add shebang and default to server mode
- Add shebang to src/main.ts so it's executable as a CLI
- Auto-detect execution context: CLI vs Electron
- Default to server mode when run via npm/npx (no Electron deps needed)
- Preserve Electron desktop mode when launched as Electron app
This makes 'npx @coder/cmux' work out of the box without requiring
Electron dependencies or 'server' argument.
Generated with cmux1 parent 2ddc193 commit cbdacfa
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
6 | 15 | | |
7 | 16 | | |
8 | 17 | | |
| |||
0 commit comments