tsconfig
The tsconfig file is a configuration file used by the TypeScript compiler (tsc). It tells the compiler how to compile TypeScript files into JavaScript. The tsconfig file is typically named tsconfig.json and is placed in the root directory of a TypeScript project.
When you run the tsc command, it will look for a tsconfig.json file in the current directory
The tsconfig.json file is a JSON object that contains various compiler options. Some of the most common
compilerOptions: This object contains a list of options that control how the TypeScript compiler behaves. Some
target: Specifies the ECMAScript target version to compile for. For example, "es5", "es6", or "es2017".
module: Specifies the module system to use. For example, "commonjs", "amd", or "esnext".
outDir: Specifies the output directory for the compiled JavaScript files.
rootDir: Specifies the root directory of your TypeScript source files.
strict: Enables a set of strict type-checking options.
include: An array of file glob patterns that specify which files should be compiled.
exclude: An array of file glob patterns that specify which files should be excluded from compilation.
By using a tsconfig.json file, you can easily configure the TypeScript compiler to meet the specific