From 1d431a80df7abdce1362e1851b6760e984424c9a Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" <219766164+opencode-agent[bot]@users.noreply.github.com> Date: Thu, 24 Sep 2026 13:16:46 -0400 Subject: [PATCH] fix(cli): reuse core declarations during typecheck (#51165) Co-authored-by: jlongster --- packages/cli/package.json | 2 +- packages/cli/tsconfig.json | 3 ++- turbo.json | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/cli/package.json b/packages/cli/package.json index 573a701139b..ea8f7f99738 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -21,7 +21,7 @@ "build:node": "bun run script/build-node.ts", "dev": "bun run src/index.ts", "test": "bun test --timeout 30000 --only-failures", - "typecheck": "tsgo --noEmit" + "typecheck": "tsgo -b" }, "dependencies": { "@agentclientprotocol/sdk": "1.2.1", diff --git a/packages/cli/tsconfig.json b/packages/cli/tsconfig.json index 714326ded7b..5007af57a01 100644 --- a/packages/cli/tsconfig.json +++ b/packages/cli/tsconfig.json @@ -7,5 +7,6 @@ "lib": ["ESNext", "DOM", "DOM.Iterable", "DOM.AsyncIterable"], "noUncheckedIndexedAccess": false }, - "exclude": ["dist", "dist-node"] + "exclude": ["dist", "dist-node"], + "references": [{ "path": "../core" }] } diff --git a/turbo.json b/turbo.json index 07d4810636e..52d045674cc 100644 --- a/turbo.json +++ b/turbo.json @@ -11,6 +11,9 @@ "globalPassThroughEnv": ["CI", "OPENCODE_DISABLE_SHARE"], "tasks": { "typecheck": {}, + "@opencode/cli#typecheck": { + "dependsOn": ["@opencode/core#typecheck"] + }, "test:components": { "outputs": [], "cache": false