ivogabe / gulp-typescript

A TypeScript compiler for gulp with incremental compilation support.
MIT License
839 stars 129 forks source link

Ignore compilation of node_modules types #638

Closed anteburazer closed 4 years ago

anteburazer commented 4 years ago

I have a project structure like this:

- myProject
  - src
  - node_modules

Here's the simplified code for using the plugin.

const typescript = require('gulp-typescript');

function createTsProject(config) {
    return typescript.createProject(config);
}

var stream = gulp.src(MY_path + '/src')
  .pipe(createTsProject(TYPESCRIPT_CONFIG));

node_modules packages contain typings and modules from src folder are consuming them. Since lot of the typings use older Typescript version and contain deprecated syntax, I'm getting a lot of errors from gulp-typescript. In my case the deprecated node_modules is not easy to replace with newer ones, for several reasons.

Is there an option to ignore the errors from node_modules and have successful build?

anteburazer commented 4 years ago

The problem is not related to gulp-typescript. Closing the issue.