Skip to content

Commit a3970b8

Browse files
bloveclaude
andauthored
fix(libs): make the type-tests targets runnable again (#1064)
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 <noreply@anthropic.com>
1 parent 758f624 commit a3970b8

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

libs/ag-ui/tsconfig.type-tests.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
"extends": "./tsconfig.lib.json",
33
"compilerOptions": {
44
"noEmit": true,
5+
// This target runs the workspace `tsc` (newer than the build compilers),
6+
// which errors on the inherited baseUrl unless deprecations are ignored.
7+
"ignoreDeprecations": "6.0",
8+
// Type-specs import sibling libraries through tsconfig paths; with noEmit
9+
// the rootDir only has to be wide enough to contain them.
10+
"rootDir": "../..",
511
"strict": true,
612
"strictFunctionTypes": true,
713
"skipLibCheck": true,

libs/chat/tsconfig.type-tests.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
"compilerOptions": {
44
"outDir": "../../dist/out-tsc/type-tests",
55
"noEmit": true,
6+
// This target runs the workspace `tsc` (newer than the build compilers),
7+
// which errors on the inherited baseUrl unless deprecations are ignored.
8+
"ignoreDeprecations": "6.0",
9+
// Type-specs import sibling libraries through tsconfig paths; with noEmit
10+
// the rootDir only has to be wide enough to contain them.
11+
"rootDir": "../..",
612
"composite": false,
713
"declarationMap": false,
814
"emitDeclarationOnly": false,

libs/langgraph/tsconfig.type-tests.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
"extends": "./tsconfig.lib.json",
33
"compilerOptions": {
44
"noEmit": true,
5+
// This target runs the workspace `tsc` (newer than the build compilers),
6+
// which errors on the inherited baseUrl unless deprecations are ignored.
7+
"ignoreDeprecations": "6.0",
8+
// Type-specs import sibling libraries through tsconfig paths; with noEmit
9+
// the rootDir only has to be wide enough to contain them.
10+
"rootDir": "../..",
511
"strict": true,
612
"strictFunctionTypes": true,
713
"skipLibCheck": true,

0 commit comments

Comments
 (0)