Skip to content

fix(cli): narrow tsconfig include so cli typecheck skips electron modules#12

Merged
johnnyhuy merged 1 commit into
mainfrom
fix/cli-lighter-imports
Jul 19, 2026
Merged

fix(cli): narrow tsconfig include so cli typecheck skips electron modules#12
johnnyhuy merged 1 commit into
mainfrom
fix/cli-lighter-imports

Conversation

@johnnyhuy

Copy link
Copy Markdown
Contributor

Summary

The CLI's CI step failed after #11 merged because cli/tsconfig.json globbed ../src/main/**, which dragged electron-dependent (safeStorage, ipcMain) and which-dependent modules into the CLI's typecheck. CLI has no electron dependency installed.

Fix

Switched cli/tsconfig.json to an explicit include list of only the leaf files CLI modules actually reach — src/main/{providers,gateways,wiring,fsutil} and src/shared/*. None of those import electron, so they typecheck cleanly under just @types/node.

Verification

  • bun run cli → bun build --compile
  • ./dist/hoist list still prints harnesses + providers + gateways
  • App CI (npm run typecheck && npm run lint && npm run build) still ✓

…ules

The cli/tsconfig.json previously globbed `../src/main/**`, which dragged
electron- and `which`-dependent files into the cli typecheck. The cli CI
step had no node_modules for those, so it failed after PR #11 merged.

The cli only needs:
- src/main/{providers,gateways,wiring,fsutil} — no electron
- src/shared/{index,channels,types}

Switched to an explicit include list and dropped the bun-types fallback.
`bun run cli → bun build --compile` still passes, runtime unaffected.
@johnnyhuy
johnnyhuy merged commit 34b973e into main Jul 19, 2026
7 checks passed
@johnnyhuy
johnnyhuy deleted the fix/cli-lighter-imports branch July 19, 2026 04:10
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