From c8d8f5ebefa73f2121573727493835f824bc0deb Mon Sep 17 00:00:00 2001 From: Brian Love Date: Tue, 8 Sep 2026 07:45:44 -0700 Subject: [PATCH] fix(libs): make the type-tests targets runnable again MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All three failed on main for two inherited reasons: TS 6 errors on the baseUrl deprecation from tsconfig.base.json, and the per-library rootDir excludes the sibling sources that type-specs import through path mappings. Both are scoped to the type-tests configs — putting ignoreDeprecations in tsconfig.base.json breaks the library builds, whose compiler rejects the option with TS5103. Co-Authored-By: Claude Opus 5 --- libs/ag-ui/tsconfig.type-tests.json | 6 ++++++ libs/chat/tsconfig.type-tests.json | 6 ++++++ libs/langgraph/tsconfig.type-tests.json | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/libs/ag-ui/tsconfig.type-tests.json b/libs/ag-ui/tsconfig.type-tests.json index 47e1cd415..1bdf4776a 100644 --- a/libs/ag-ui/tsconfig.type-tests.json +++ b/libs/ag-ui/tsconfig.type-tests.json @@ -2,6 +2,12 @@ "extends": "./tsconfig.lib.json", "compilerOptions": { "noEmit": true, + // This target runs the workspace `tsc` (newer than the build compilers), + // which errors on the inherited baseUrl unless deprecations are ignored. + "ignoreDeprecations": "6.0", + // Type-specs import sibling libraries through tsconfig paths; with noEmit + // the rootDir only has to be wide enough to contain them. + "rootDir": "../..", "strict": true, "strictFunctionTypes": true, "skipLibCheck": true, diff --git a/libs/chat/tsconfig.type-tests.json b/libs/chat/tsconfig.type-tests.json index 68ecd35d2..49ad5fe1d 100644 --- a/libs/chat/tsconfig.type-tests.json +++ b/libs/chat/tsconfig.type-tests.json @@ -3,6 +3,12 @@ "compilerOptions": { "outDir": "../../dist/out-tsc/type-tests", "noEmit": true, + // This target runs the workspace `tsc` (newer than the build compilers), + // which errors on the inherited baseUrl unless deprecations are ignored. + "ignoreDeprecations": "6.0", + // Type-specs import sibling libraries through tsconfig paths; with noEmit + // the rootDir only has to be wide enough to contain them. + "rootDir": "../..", "composite": false, "declarationMap": false, "emitDeclarationOnly": false, diff --git a/libs/langgraph/tsconfig.type-tests.json b/libs/langgraph/tsconfig.type-tests.json index 47e1cd415..1bdf4776a 100644 --- a/libs/langgraph/tsconfig.type-tests.json +++ b/libs/langgraph/tsconfig.type-tests.json @@ -2,6 +2,12 @@ "extends": "./tsconfig.lib.json", "compilerOptions": { "noEmit": true, + // This target runs the workspace `tsc` (newer than the build compilers), + // which errors on the inherited baseUrl unless deprecations are ignored. + "ignoreDeprecations": "6.0", + // Type-specs import sibling libraries through tsconfig paths; with noEmit + // the rootDir only has to be wide enough to contain them. + "rootDir": "../..", "strict": true, "strictFunctionTypes": true, "skipLibCheck": true,