IssueRaiser

Ability to extend compilerOptions's paths config

# Suggestion I have a `tsconfig.base.json` file for the monorepo, it defined paths that all project can use ``` { "compileOnSave": false, "compilerOptions": { ``` "paths": { "@aegis/ui": ["libs/ui/src/index.ts"], "@aegis/ui/*": ["libs/ui/src/*"], "@aegis/shared": ["libs/shared/src/index.ts"], "@aegis/shared/*": ["libs/shared/src/*"] } }, "exclude": ["node_modules", "tmp"] } ``` Each project has own `tsconfig.json`, also defined paths that only for itself ``` { "extends": "../../tsconfig.base.json", "compilerOptions": { "paths": { "@environment": ["src/environments/environment.ts"] } }, "files": [], "include": [], "references": [ { "path": "./tsconfig.app.json" }, { "path": "./tsconfig.spec.json" }, { "path": "./tsconfig.editor.json" } ] } ``` Unfortunately, the `paths` would be overwritten. I have to add `tsconfig.base.json` paths item to each project. So, it's necessary to provide a solution for this case. ## 🔍 Search Terms <!-- 💡 Did you know? TypeScript has over 2,000 open suggestions! 🔎 Please search thoroughly before logging new feature requests as most common ideas already have a proposal in progress. The "Common Feature Requests" section of the FAQ lists many popular requests: https://github.com/Microsoft/TypeScript/wiki/FAQ#common-feature-requests Replace the text below: --> - compilerOptions paths extends label:Suggestion List of

Posted by xiejay97 on Jun 15, 2021, 6:33 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,000 issues0 comments

ux (SaaS)

Ability to extend compilerOptions's paths config

xiejay97Jun 15, 2021, 6:33 AM

# Suggestion I have a `tsconfig.base.json` file for the monorepo, it defined paths that all project can use ``` { "compileOnSave": false, "compilerOptions": { ``` "paths": { "@aegis/ui": ["libs/ui/src/index.ts"], "@aegis/ui/*": ["libs/ui/src/*"], "@aegis/shared": ["libs/shared/src/index.ts"], "@aegis/shared/*": ["libs/shared/src/*"] } }, "exclude": ["node_modules", "tmp"] } ``` Each project has own `tsconfig.json`, also defined paths that only for itself ``` { "extends": "../../tsconfig.base.json", "compilerOptions": { "paths": { "@environment": ["src/environments/environment.ts"] } }, "files": [], "include": [], "references": [ { "path": "./tsconfig.app.json" }, { "path": "./tsconfig.spec.json" }, { "path": "./tsconfig.editor.json" } ] } ``` Unfortunately, the `paths` would be overwritten. I have to add `tsconfig.base.json` paths item to each project. So, it's necessary to provide a solution for this case. ## 🔍 Search Terms <!-- 💡 Did you know? TypeScript has over 2,000 open suggestions! 🔎 Please search thoroughly before logging new feature requests as most common ideas already have a proposal in progress. The "Common Feature Requests" section of the FAQ lists many popular requests: https://github.com/Microsoft/TypeScript/wiki/FAQ#common-feature-requests Replace the text below: --> - compilerOptions paths extends label:Suggestion List of

Comments (0)

No comments yet. Start the discussion.

Comment on this issue