Microsoft has a tsconfig.json wiki From the wiki:
- The presence of a
tsconfig.jsonfile in a directory indicates that the directory is the root of a TypeScript project.
- If no “files” property is present in the tsconfig.json file, the compiler defaults to including all fiels in the containing directory and sub-directories. When a “files” property is specified, only those files are included.
tsconfig.jsonfile specifies the root files and the compiler options required to compile the project. Note that if/when input files are specified on the command line,
tsconfig.jsonfiles are ignored.
to my 5 Minute QuickStart app’s tsconfig.json file and seeing it work correctly, I closed the folder. The next day I reopened it in VS Code and the the transpiler ignored the experimentalDecorators key/value pair – the MyAppComponent class had a red squiggly under it.
I removed and then re-added “experimentalDecorators”: true, back to the “compilerOptions” array of key/value pairs and the transpiler seemed to see it again as the build worked after that.
From the Microsoft wiki:
- If no “files” property is present in a tsconfig.json, the compiler defaults to including all files in the containing directory and subdirectories.
- When a “files” property is specified, only those files are included.