ivogabe / gulp-typescript

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

Is there a possibility to skip type checking without setting isolatedModules to true? #645

Closed skmehra closed 4 years ago

skmehra commented 4 years ago

Expected behavior: gulp-typescript triggers typecheck unless isolatedModules is set to true. Is there any possibility to skip type check even if isolatedModules is not used (false).

Actual behavior: It should be possible to only emit files without type checks.

Your gulpfile:

Include your gulpfile, or only the related task (with ts.createProject).

gulp.task("default", function() {
    return tsProject
        .src()
        .pipe(tsProject({ isolatedModules: true }))
        .js.pipe(gulp.dest("dist"));
});

tsconfig.json { "compileOnSave": true, "compilerOptions": { "moduleResolution": "Node", "esModuleInterop": true, "module": "commonjs", "target": "es6", "sourceMap": true, "alwaysStrict": true, "outDir": "./dist", "rootDir": "./src", "experimentalDecorators": true, "emitDecoratorMetadata": true, "declaration": true, "resolveJsonModule": true, "isolatedModules": true, "incremental": true, "tsBuildInfoFile": "./.tsBuildInfoFile" }, "include": ["./src/"], "exclude": ["node_modules"] }

Include your tsconfig, if related to this issue.

Code

Include your TypeScript code, if necessary.