Commit 9928a19
committed
🤖 fix: make node-pty rebuild conditional on Electron presence
When installing mux via npm as a CLI tool, Electron is not present,
causing the postinstall script to fail when trying to rebuild node-pty
for Electron ABI.
This change makes the rebuild conditional:
- If Electron is installed (dev/packaged app): rebuild for Electron ABI
- If Electron is not installed (npm CLI): use Node.js ABI (default)
This allows mux to be installed both as an Electron app (with terminal
support) and as a standalone CLI tool via npm.
_Generated with `mux`_1 parent 31680dd commit 9928a19
2 files changed
+22
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments