diff --git a/libs/ag-ui/project.json b/libs/ag-ui/project.json index 9d93dae89..b7ee02082 100644 --- a/libs/ag-ui/project.json +++ b/libs/ag-ui/project.json @@ -57,7 +57,7 @@ "type-tests": { "executor": "nx:run-commands", "options": { - "command": "npx tsc --noEmit -p libs/ag-ui/tsconfig.type-tests.json" + "command": "node ./node_modules/typescript/bin/tsc --noEmit -p libs/ag-ui/tsconfig.type-tests.json" } }, "prepare-install": { diff --git a/libs/ag-ui/tsconfig.type-tests.json b/libs/ag-ui/tsconfig.type-tests.json index 1bdf4776a..119d3d12d 100644 --- a/libs/ag-ui/tsconfig.type-tests.json +++ b/libs/ag-ui/tsconfig.type-tests.json @@ -2,9 +2,6 @@ "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": "../..", diff --git a/libs/chat/project.json b/libs/chat/project.json index d1c2540f8..4ccad4514 100644 --- a/libs/chat/project.json +++ b/libs/chat/project.json @@ -57,7 +57,7 @@ "type-tests": { "executor": "nx:run-commands", "options": { - "command": "npx tsc --project libs/chat/tsconfig.type-tests.json --noEmit" + "command": "node ./node_modules/typescript/bin/tsc --project libs/chat/tsconfig.type-tests.json --noEmit" } }, "prepare-install": { diff --git a/libs/chat/tsconfig.type-tests.json b/libs/chat/tsconfig.type-tests.json index 49ad5fe1d..24175b726 100644 --- a/libs/chat/tsconfig.type-tests.json +++ b/libs/chat/tsconfig.type-tests.json @@ -3,9 +3,6 @@ "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": "../..", diff --git a/libs/langgraph/project.json b/libs/langgraph/project.json index 001a826b3..8f1b57655 100644 --- a/libs/langgraph/project.json +++ b/libs/langgraph/project.json @@ -57,7 +57,7 @@ "type-tests": { "executor": "nx:run-commands", "options": { - "command": "npx tsc --noEmit -p libs/langgraph/tsconfig.type-tests.json" + "command": "node ./node_modules/typescript/bin/tsc --noEmit -p libs/langgraph/tsconfig.type-tests.json" } }, "prepare-install": { diff --git a/libs/langgraph/tsconfig.type-tests.json b/libs/langgraph/tsconfig.type-tests.json index 1bdf4776a..119d3d12d 100644 --- a/libs/langgraph/tsconfig.type-tests.json +++ b/libs/langgraph/tsconfig.type-tests.json @@ -2,9 +2,6 @@ "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": "../..", diff --git a/tsconfig.base.json b/tsconfig.base.json index 3a00a4735..bd1425983 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -15,6 +15,15 @@ "noImplicitOverride": true, "noImplicitReturns": true, "noUnusedLocals": true, + // TypeScript 7 drops `baseUrl`, and since TypeScript 5.0 the `paths` below + // no longer need it (they resolve against this file's directory). It cannot + // go yet: Nx's buildable-library executors (`@nx/angular:package`, + // `@nx/js:tsc`) write a generated tsconfig under `tmp//build/` + // that re-declares `paths` with workspace-root-relative dist outputs such as + // `dist/libs/telemetry/browser`. Those entries are non-relative, so without a + // `baseUrl` TypeScript reports TS5090 and discards the whole `paths` map, + // and every library that depends on another library fails to compile. + // Removing this needs an Nx fix (or the Nx TS-solution setup) first. "baseUrl": ".", "paths": { "@threadplane/design-tokens": ["libs/design-tokens/src/index.ts"],