According to the documentation for typescript, we have the option in tsconfig.json
to manage input files using either the files
property where all files are listed, or with the exclude
property. I have organized all my source files within a directory named src
and I only want to compile the files located there (to a different directory called build
). While I could use exclude
to exclude all other files and directories, I run the risk of missing something important. The thought of manually adding every file to the files
list is not appealing.
Is there a way to instruct typescript to compile only the TypeScript files found specifically in the src
directory, without including anything else?