Commit 2ea81cc
fix: use require.resolve to find hoisted node-pty in postinstall
When installed via npx, node-pty is hoisted as a sibling of
termbeam (not nested inside termbeam/node_modules/). The previous
postinstall used __dirname + 'node_modules/node-pty' which missed
the hoisted location. Use require.resolve('node-pty/package.json')
to find node-pty regardless of hoisting.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 370e325 commit 2ea81cc
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments