fix(cli): reuse core declarations during typecheck (#51165)

Co-authored-by: jlongster <jlongster@users.noreply.github.com>
This commit is contained in:
opencode-agent[bot]
2026-09-24 13:16:46 -04:00
committed by GitHub
parent 19a9e41c28
commit 1d431a80df
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -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",
+2 -1
View File
@@ -7,5 +7,6 @@
"lib": ["ESNext", "DOM", "DOM.Iterable", "DOM.AsyncIterable"],
"noUncheckedIndexedAccess": false
},
"exclude": ["dist", "dist-node"]
"exclude": ["dist", "dist-node"],
"references": [{ "path": "../core" }]
}
+3
View File
@@ -11,6 +11,9 @@
"globalPassThroughEnv": ["CI", "OPENCODE_DISABLE_SHARE"],
"tasks": {
"typecheck": {},
"@opencode/cli#typecheck": {
"dependsOn": ["@opencode/core#typecheck"]
},
"test:components": {
"outputs": [],
"cache": false