Skip to content

Commit

Permalink
Disabled skipLibCheck while checking generated output (fixes #72)
Browse files Browse the repository at this point in the history
  • Loading branch information
timocov committed Feb 14, 2019
1 parent 2928bc1 commit caf0178
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bin/dts-bundle-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ function main(): void {
const preferredConfigFile = bundlerConfig.compilationOptions !== undefined ? bundlerConfig.compilationOptions.preferredConfigPath : undefined;
const compilerOptions = getCompilerOptions(outFilesToCheck, preferredConfigFile);
if (compilerOptions.skipLibCheck) {
warnLog('BEWARE: The generated file could not be properly checked due enabled "skipLibCheck" compiler option');
compilerOptions.skipLibCheck = false;
warnLog('Compiler option "skipLibCheck" is disabled to properly check generated output');
}

const program = ts.createProgram(outFilesToCheck, compilerOptions);
Expand Down

0 comments on commit caf0178

Please sign in to comment.