From 789add34352082e1470ff5888dd150db7ddef35e Mon Sep 17 00:00:00 2001 From: Johnny Huynh <27847622+johnnyhuy@users.noreply.github.com> Date: Sun, 19 Jul 2026 14:09:17 +1000 Subject: [PATCH] fix(cli): narrow tsconfig include so cli typecheck skips electron modules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- cli/tsconfig.json | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/cli/tsconfig.json b/cli/tsconfig.json index f0bd209..7301750 100644 --- a/cli/tsconfig.json +++ b/cli/tsconfig.json @@ -14,7 +14,27 @@ "paths": { "@hoist/shared": ["src/shared/index.ts"], "@hoist/shared/*": ["src/shared/*"] - } + }, + "types": ["node"] }, - "include": ["src", "../src/main", "../src/shared", "../src/main/providers/catalog.source.json", "../src/main/gateways/catalog.source.json"] + "include": [ + "src", + "../src/main/providers/catalog.ts", + "../src/main/providers/types.ts", + "../src/main/providers/catalog.generated.ts", + "../src/main/providers/catalog.source.json", + "../src/main/gateways/index.ts", + "../src/main/gateways/types.ts", + "../src/main/gateways/resolve.ts", + "../src/main/gateways/catalog.generated.ts", + "../src/main/gateways/catalog.source.json", + "../src/main/wiring/index.ts", + "../src/main/wiring/claudeCode.ts", + "../src/main/wiring/codex.ts", + "../src/main/wiring/openCode.ts", + "../src/main/fsutil.ts", + "../src/shared/index.ts", + "../src/shared/channels.ts", + "../src/shared/types.ts" + ] }