title: Regex for matching ts files but not test
body: <p>I need regex to add to the tsconfig file. I'm trying to match only ts source files, but not test files.</p>
  
  <p>Tried something like;</p>
  
  <pre><code>  "include": [
      "src/**/*",
      "../../node_modules/@web/common/src/app/views/**/*.ts"
      "../../node_modules/@web/common/src/app/views/**/*.(module|component).ts"
    ],
    "exclude": [
      "node_modules",
      "**/*.spec.ts",
      "../../**/*.spec.ts"
  </code></pre>
  
  <p>But no luck.</p>
  
  <pre><code>// should match
  /main.ts
  /hello-world.component.ts
  
  // shouldn't match
  /hello-world.component.spec.ts
  /app.e2e-spec.ts
  </code></pre>