raju
raju

Reputation: 6936

Use of tsconfig.app.json

I am unable to understand the use of tsconfig.app.json in src folder in Angular-2 cli project. I know that tsconfig.json is use by typescript compiler, so why tsconfig.app.json?

Upvotes: 25

Views: 9803

Answers (1)

basarat
basarat

Reputation: 276229

There are a few tsconfig.json files in the standard angular project. Here are the one you have asked about:

  • The root tsconfig.json provides the base options that different config files derive from.
  • The app tsconfig.app.json provides the options used when working with code in the app folder. This allows you to further customize the options from tsconfig.json

Other tsconfig files follow the same (base + customization) pattern.

Upvotes: 16

Related Questions