Compile .ts file but don't copy it to `outDir`

时间:2018-03-31 07:38:00

标签: typescript typescript2.0

I have a config.ts file in project root, which obviously is not part of the src folder. I want all my tsfiles 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. */

0 个答案:

没有答案