Reputation: 3093
I can easily find the compiler option defaults for TypeScript by going to https://www.typescriptlang.org/docs/handbook/compiler-options.html but I cannot find the tsconfig.json defaults.
Where can I find the tsconfig.json defaults?
In particular I'm looking for the default for compileOnSave.
Upvotes: 4
Views: 1930
Reputation: 22382
To do this we can use JSON schema for tsconfig. There we can see that there is no default value associated with compileOnSave
property.
So I guess the answer is - there is no default value for it. tsc treats absence of the property as if "compile on save" is disabled.
Note. The default property in the JSON schema is just a hint and has no real connection to the actual data, so its up to tsc developers to follow the schema defaults properly, and I really hope they do.
Upvotes: 2