From 104b9547e55e76f768edca0a9df19017607967b7 Mon Sep 17 00:00:00 2001 From: Sean Perkins Date: Tue, 15 Aug 2023 10:50:38 -0400 Subject: [PATCH] chore: typescript resolves @ionic/angular/common import paths (#27995) Issue number: N/A --------- ## What is the current behavior? IDEs that perform type checking/include a language service will error on the `@ionic/angular/common` import paths and not provide intelisense or auto import detection. ![CleanShot 2023-08-15 at 09 49 34](https://github.com/ionic-team/ionic-framework/assets/13732623/2e9913b2-5b44-4dd7-8cf7-8fa0d6aaac69) ## What is the new behavior? - `@ionic/angular/common` import paths are detected by IDEs such as VSCode ![CleanShot 2023-08-15 at 09 48 40](https://github.com/ionic-team/ionic-framework/assets/13732623/cd502093-b095-47a8-b5f7-b28a0fc9fe27) ## Does this introduce a breaking change? - [ ] Yes - [x] No ## Other information --- packages/angular/tsconfig.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/angular/tsconfig.json b/packages/angular/tsconfig.json index 3e44846fb9..6d1a5a2ff0 100644 --- a/packages/angular/tsconfig.json +++ b/packages/angular/tsconfig.json @@ -35,8 +35,11 @@ { "name": "typescript-eslint-language-service" } - ] + ], + "paths": { + "@ionic/angular/common": ["common/src/index.ts"] + } }, "exclude": ["node_modules", "src/schematics"], - "files": ["src/index.ts"] + "files": ["src/index.ts", "common/src/index.ts"] }