I have a config.ts
file in project root, which obviously is not part of the src
folder.
I want all my ts
files in folder src
to be compiled and copied to the outDir
. This works.
Question:
I want to compile-only the config.ts
and not copy it to outDir
, because it's only a dev dependency and not part of my app.
tsconfig.json
"outDir": "dist", /* Redirect output structure to the directory. */
"rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */