diff options
| author | PhysicistLeon <physicistleon@gmail.com> | 2026-10-11 19:36:56 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-10-11 22:06:56 +0530 |
| commit | ff449d9f807bc2aa9b6d13aaa8602c37a6a72352 (patch) | |
| tree | cec8af0acff219105562b1f5dde4c7fa1f14c273 /src/daemon/queue.ts | |
| parent | 8d7a067c8d82a592bfb3dcacf05305c39550cbc6 (diff) | |
fix(daemon): resolve tsx from the filesystem when Node's resolver cannot see node_modules (#28)
Inside a Bun-compiled pi binary (pi.exe), createRequire().resolve("tsx/cli") is rooted at the
embedded virtual filesystem and cannot see the extension's real node_modules, so browser_setup
failed instantly. The resolver result is now checked on disk and, when it fails, the tsx CLI is
found by walking up the node_modules chain. Under Bun the daemon runs on `node` from PATH
(process.execPath is the pi binary itself); PI_BROWSER_NODE overrides it.
Fixes #27
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'src/daemon/queue.ts')
0 files changed, 0 insertions, 0 deletions
