Skip to content

Commit 8002cc0

Browse files
committed
chore(core,sdk): make the ai-v7 typecheck pass deterministic
The forward-compat ai-v7 typecheck pass ran under composite: true, so it wrote incremental buildinfo even with --noEmit. Disabling composite/incremental for this -p tsconfig.ai-v7.json pass removes a stale-state source that can surface as spurious CommonJS-vs-ESM (TS1479) errors on the bare "ai" import.
1 parent 1466a15 commit 8002cc0

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

packages/core/tsconfig.ai-v7.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
// file-direct rationale.
77
"extends": "./tsconfig.src.json",
88
"compilerOptions": {
9+
// noEmit-only gate: disable composite/incremental so this pass never writes or
10+
// reads a .tsbuildinfo and can't replay stale module resolution across runs.
11+
"composite": false,
12+
"incremental": false,
913
"baseUrl": ".",
1014
"paths": {
1115
"ai": ["./node_modules/ai-v7/dist/index.d.ts"]

packages/trigger-sdk/tsconfig.ai-v7.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
// real installed `ai`, which would make this pass a no-op.
1010
"extends": "./tsconfig.json",
1111
"compilerOptions": {
12+
// noEmit-only gate: disable composite/incremental so this pass never writes or
13+
// reads a .tsbuildinfo and can't replay stale module resolution across runs.
14+
"composite": false,
15+
"incremental": false,
1216
"baseUrl": ".",
1317
"paths": {
1418
"ai": ["./node_modules/ai-v7/dist/index.d.ts"]

0 commit comments

Comments
 (0)