[PR #9384] fix: add bun-types to tsconfig to resolve process type error #13094

Open
opened 2026-02-16 18:17:58 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/9384

State: open
Merged: No


Summary

  • Add bun-types to the types array in packages/opencode/tsconfig.json
  • Fixes TypeScript error: Cannot find name 'process'

Context

The types: [] configuration prevented TypeScript from recognizing Bun global types like process.

Note: This issue was observed with Bun 1.3.6. It may be a regression in that version, but adding bun-types explicitly is a more robust solution regardless.

Test

  • Run bun run typecheck in packages/opencode - passes successfully
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9384 **State:** open **Merged:** No --- ## Summary - Add `bun-types` to the `types` array in `packages/opencode/tsconfig.json` - Fixes TypeScript error: `Cannot find name 'process'` ## Context The `types: []` configuration prevented TypeScript from recognizing Bun global types like `process`. Note: This issue was observed with Bun 1.3.6. It may be a regression in that version, but adding `bun-types` explicitly is a more robust solution regardless. ## Test - Run `bun run typecheck` in `packages/opencode` - passes successfully
yindo added the pull-request label 2026-02-16 18:17:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13094