From 8002cc0c4c8c9abf0683be3b5326fed89a64eb93 Mon Sep 17 00:00:00 2001 From: Eric Allam Date: Fri, 5 Jun 2026 14:59:26 +0100 Subject: [PATCH] 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. --- packages/core/tsconfig.ai-v7.json | 4 ++++ packages/trigger-sdk/tsconfig.ai-v7.json | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/packages/core/tsconfig.ai-v7.json b/packages/core/tsconfig.ai-v7.json index e2f9ae9e23..952d0bde6e 100644 --- a/packages/core/tsconfig.ai-v7.json +++ b/packages/core/tsconfig.ai-v7.json @@ -6,6 +6,10 @@ // file-direct rationale. "extends": "./tsconfig.src.json", "compilerOptions": { + // noEmit-only gate: disable composite/incremental so this pass never writes or + // reads a .tsbuildinfo and can't replay stale module resolution across runs. + "composite": false, + "incremental": false, "baseUrl": ".", "paths": { "ai": ["./node_modules/ai-v7/dist/index.d.ts"] diff --git a/packages/trigger-sdk/tsconfig.ai-v7.json b/packages/trigger-sdk/tsconfig.ai-v7.json index 92c79ba1f8..037fd22e40 100644 --- a/packages/trigger-sdk/tsconfig.ai-v7.json +++ b/packages/trigger-sdk/tsconfig.ai-v7.json @@ -9,6 +9,10 @@ // real installed `ai`, which would make this pass a no-op. "extends": "./tsconfig.json", "compilerOptions": { + // noEmit-only gate: disable composite/incremental so this pass never writes or + // reads a .tsbuildinfo and can't replay stale module resolution across runs. + "composite": false, + "incremental": false, "baseUrl": ".", "paths": { "ai": ["./node_modules/ai-v7/dist/index.d.ts"]