From 7bcaf01aced41ec7f2e26f90b0a8a97edaeb732a Mon Sep 17 00:00:00 2001 From: Matthieu Riegler Date: Thu, 10 Jul 2025 16:34:04 +0200 Subject: [PATCH] build: set paths for devtools & adev (#62574) This allows the IDE to find the right imports PR Close #62574 --- adev/shared-docs/tsconfig.json | 3 +-- adev/tsconfig.json | 6 +++++- devtools/tsconfig.json | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/adev/shared-docs/tsconfig.json b/adev/shared-docs/tsconfig.json index ac9d91c664e..6b978a36e46 100644 --- a/adev/shared-docs/tsconfig.json +++ b/adev/shared-docs/tsconfig.json @@ -12,6 +12,5 @@ "jsxFactory": "h", "jsxFragmentFactory": "Fragment", "types": ["node"], - "paths": {}, } -} \ No newline at end of file +} diff --git a/adev/tsconfig.json b/adev/tsconfig.json index 8454df17a2c..e5768f26ee4 100644 --- a/adev/tsconfig.json +++ b/adev/tsconfig.json @@ -27,7 +27,11 @@ "jsx": "react", "jsxFactory": "h", "jsxFragmentFactory": "Fragment", - "skipLibCheck": true + "skipLibCheck": true, + "paths": { + "@angular/docs": ["./shared-docs"], + "@angular/*": ["../packages/*/index"] + } }, "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false, diff --git a/devtools/tsconfig.json b/devtools/tsconfig.json index 8ce6d646eb5..09964910aa4 100644 --- a/devtools/tsconfig.json +++ b/devtools/tsconfig.json @@ -16,6 +16,7 @@ "target": "es2020", "lib": ["es2020", "dom", "dom.iterable"], "types": ["chrome"], + // TODO: Have an IDE specific tsconfig file "paths": { "@angular/*": ["../packages/*/index"] }