title: Best practice to setup tsconfig "files" vs "include"?
body: <p>I was wondering what is better and what are the pros and cons of using "files" vs "include" in tsconfig?</p>
  
  <p>I don't really like the include pattern because is just including all ts files in the src folder, and I might now want that. </p>
  
  <p>I like the "files" approach, because I can point to the entry file and just load everything that file needs.</p>
  
  <p>I'm using typescript with webpack. I guess the entry point is defined in webpack so there is no need to define in typescript as well?</p>
  
  <p>I tried to use "files" but looks like there is no way to set a folder to look for custom type definitions: <a href="https://stackoverflow.com/questions/51798600/typescript-with-tsconfig-with-files-import-image-module-not-found?noredirect=1#comment90566928_51798600">typescript with tsconfig with &quot;files&quot; =&gt; import image module not found</a></p>