title: How to exclude files ending in '.spec.ts' in tsconfig.json
body: <p>I'm trying to include some files in my tsconfig.json, but it's including files I don't want to be included. From a repo (with uncompiled source) I'm trying to include files that end in <code>.ts</code>, <em>except</em> for ones that end in <code>.spec.ts</code>.</p>
  <p>The following includes the files I want, but doesn't successfully exclude the files I don't want.</p>
  <pre><code>  &quot;include&quot;: [&quot;node_modules/dashboard/**/*.ts&quot;],
    &quot;exclude&quot;: [&quot;node_modules/dashboard/**/*.spec.ts&quot;],
  </code></pre>
  <p>(Then) new to Unix <strong>glob</strong> patterns/strings, I need ones to match and exclude the files correctly, and then how to add them to the config.</p>