title: How to exclude *.d.ts file for TypeScript compiler?
body: <p>I use a npm module web3@1.0.0-beta.24 which has some mistakes in its index.d.ts file. </p>
  
  <p>I want to ignore this file (node_modules/web3/index.d.ts) for TS compiler and I want to use my own types file.</p>
  
  <p>But tsc still use this wrong file and can't compile my project.</p>
  
  <p>Here is my tsconfig.json:</p>
  
  <pre><code>{
    "compilerOptions": {
      "target": "es5",
      "module": "commonjs",
      "strict": true
    },
  
    "exclude": ["node_modules/web3/index.d.ts"]
  }
  </code></pre>
  
  <p>If I manually remove <code>node_modules/web3/index.d.ts</code>, tsc compiles my project.</p>
  
  <p>How to exclude this file for tsc?</p>
  
  <p>I've created a repo with minimum code to reproduce this problem:
  <a href="https://github.com/serge-nikitin/q1" rel="noreferrer">https://github.com/serge-nikitin/q1</a></p>