Skip to content

fix(tsconfig): resolve all @loadout/* workspace packages#209

Merged
srsholmes merged 1 commit into
mainfrom
fix/tsconfig-workspace-paths
Jul 10, 2026
Merged

fix(tsconfig): resolve all @loadout/* workspace packages#209
srsholmes merged 1 commit into
mainfrom
fix/tsconfig-workspace-paths

Conversation

@srsholmes

Copy link
Copy Markdown
Owner

Summary

bun run typecheck was failing with 22 errors even though bun install had run. Root cause: Bun doesn't symlink workspace packages into node_modules/@loadout/, and the root tsconfig.json only had paths entries for @loadout/types and @loadout/ui. Every other workspace import fell through to node resolution and failed:

  • TS2307: Cannot find module '@loadout/exec' / '@loadout/plugin-storage' / '@loadout/steam-cdp' / '@loadout/game-library' across apps/loadout and the plugins.
  • Those unresolved imports collapsed to any, cascading into TS7006 (implicit any on proc, e, g) and TS2531 (possibly null) errors.

This adds explicit paths entries for all 17 @loadout/* packages, mirroring the existing types/ui pattern (each pointing at the package's src). Bun itself honors these same paths, so runtime resolution benefits too.

bun run typecheck now passes clean (22 → 0 errors).

Test plan

  • bun run typecheck passes (was 22 errors, now 0)
  • tsconfig-only change; no application code, tests, or frontend touched
  • No version bump / CHANGELOG (repo does releases via separate chore(release): commits)

🤖 Generated with Claude Code

…lve them

Bun doesn't symlink workspace packages into node_modules, and the root
tsconfig only had path mappings for @loadout/types and @loadout/ui. Every
other workspace import (@loadout/exec, plugin-storage, steam-cdp,
game-library, etc.) failed with TS2307, which cascaded into implicit-any
and possibly-null errors across apps/loadout and the plugins.

Add explicit paths entries for all 17 @loadout/* packages, mirroring the
existing types/ui pattern. `bun run typecheck` now passes clean (was 22
errors).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@srsholmes srsholmes merged commit d93a994 into main Jul 10, 2026
2 checks passed
@srsholmes srsholmes deleted the fix/tsconfig-workspace-paths branch July 10, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant