[PR #8819] refactor: standardize import aliases #12883

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

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

State: open
Merged: No


What does this PR do?

  • normalize TUI imports to @tui/*
  • switch deep/parent imports in opencode to @/
  • add @/ alias to packages/web and convert deep imports

Closes #8818

How did you verify your code works?

  • bun turbo typecheck (pass)
  • bun turbo test (fails: git identity missing; same as before)

Numbers (non-bare + non-scoped only)

Approach Before After
relative deep/above 1008 296
alias @/ 412 982
alias @tui/ 113 255
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8819 **State:** open **Merged:** No --- ### What does this PR do? - normalize TUI imports to @tui/* - switch deep/parent imports in opencode to @/ - add @/ alias to packages/web and convert deep imports Closes #8818 ### How did you verify your code works? - bun turbo typecheck (pass) - bun turbo test (fails: git identity missing; same as before) Numbers (non-bare + non-scoped only) | Approach | Before | After | | ------------------- | ------ | ----- | | relative deep/above | 1008 | 296 | | alias @/ | 412 | 982 | | alias @tui/ | 113 | 255 |
yindo added the pull-request label 2026-02-16 18:17:46 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12883