outDir
outDir is a TypeScript compiler option that specifies the directory where emitted JavaScript files are written when TypeScript sources are compiled. It is configured in a tsconfig.json file under the compilerOptions section and directs the compiler to place all output files in a single, designated folder.
When outDir is used, the emitted JavaScript files preserve the folder structure of the input files relative
outDir is commonly used to separate source code from build artifacts, enabling clean project organization and
Note that if you use outFile to concatenate multiple inputs into a single file (for module targets