Skip to content

Use TSConfig bases in npm to reduce the number of TSConfigs in a project #18101

Closed
@orta

Description

@orta

🚀 feature request

👋 - hi folks. I got notified that we could probably improve the default template for an angular project using the tsconfig bases repo. A. quick 5m explainer on the project is here.

Disclaimer: I've never built an Angular app, so some of this is from looking at the base template, and I'm not sure how tsconfig's would evolve over time in large projects.

Relevant Package

ng generate's template

Description

TSConfig files can come from NPM, and TSConfig Bases is a DefinitelyTyped-like tool for making them. Today, there are a few recommended bases for frameworks (svelte, react-native, deno etc) and given there are a few angular TSConfigs then I think it could be possible to move them into node_modules.

So for example there could be

  • @tsconfig/angular-base
  • @tsconfig/angular-test

Which the user's projects can extend from.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions