fix: source-mode wrapper must cd into ~/.spawn for package resolution (#710)

bun 1.3.8 on Termux proot doesn't resolve node_modules by walking up
from the source file directory. Changing cwd to ~/.spawn/ (where
node_modules lives) before exec ensures packages are found.

Co-authored-by: Sprite <noreply@sprite.dev>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
L 2026-02-12 12:17:06 -08:00 committed by GitHub
parent 2e02ab71e0
commit ecfd8e2f4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@openrouter/spawn",
"version": "0.2.61",
"version": "0.2.62",
"type": "module",
"bin": {
"spawn": "cli.js"