Skip to content

Commit 8e3a183

Browse files
committed
fix(opencode): declare .scm imports for the opencode typecheck
packages/tui/src/parsers-config.ts imports the bundled grammars' highlights and injections queries as `*.scm` files. The opencode program compiles parsers-config.ts through its import of the tui package but does not include tui's parsers/assets.d.ts, so its typecheck failed with TS2307 for every .scm import. Declare `*.scm` beside `*.wasm` in packages/opencode/src/audio.d.ts. Turbo's cached opencode#typecheck hides this until a push changes a file under packages/opencode, because the task hash covers only that package. AI-Model: anthropic/claude-opus-5-5 AI-Variant: high AI-Tool: opencode 1.19.0-vt-227-dfb56f76c7 AI-Platform: linux AI-Harness: Vibeterm e6434eb AI-Session-ID: ses_ed1e2b932ffe6tTqhsOiGuYXRE
1 parent bfc03b0 commit 8e3a183

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎packages/opencode/src/audio.d.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,8 @@ declare module "*.wasm" {
1212
const file: string
1313
export default file
1414
}
15+
16+
declare module "*.scm" {
17+
const file: string
18+
export default file
19+
}

0 commit comments

Comments
 (0)