InterviewSolution
| 1. |
What Is Tsconfig.json File? |
|
Answer» The presence of a tsconfig.json file in a directory indicates that the directory is the root of a TypeScript project. The tsconfig.json file specifies the root FILES and the compiler options REQUIRED to compile the project. And USING this file, we can streamline building TypeScript project. Below is a sample tsconfig.json file. { Within files section, define all the .ts files in the project. And when you INVOKE tsc WITHOUT any other arguments with the above file in the current directory, it will compile all the files with the given compiler option settings. The presence of a tsconfig.json file in a directory indicates that the directory is the root of a TypeScript project. The tsconfig.json file specifies the root files and the compiler options required to compile the project. And using this file, we can streamline building TypeScript project. Below is a sample tsconfig.json file. { Within files section, define all the .ts files in the project. And when you invoke tsc without any other arguments with the above file in the current directory, it will compile all the files with the given compiler option settings. |
|