Skip to content

Comments

refactor(opencode): replace Bun.which with npm which#15012

Open
thdxr wants to merge 3 commits intodevfrom
refactor/opencode-which-helper
Open

refactor(opencode): replace Bun.which with npm which#15012
thdxr wants to merge 3 commits intodevfrom
refactor/opencode-which-helper

Conversation

@thdxr
Copy link
Contributor

@thdxr thdxr commented Feb 25, 2026

Summary

  • add a small src/util/which.ts wrapper around the npm which package to provide Bun.which-compatible path lookups (including PATH/PATHEXT overrides)
  • replace Bun.which(...) call sites in formatter, LSP server, shell/session/clipboard helpers, project detection, and ripgrep bootstrap code
  • add which and @types/which to packages/opencode and update bun.lock

Testing

  • bun run typecheck (from packages/opencode)

@thdxr thdxr added the beta label Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant