Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Make skipLibCheck overridable
  • Loading branch information
haakonflatval-cognite committed Jun 27, 2023
commit 5f0bd76a97a16412a4d9c7cf24ad58be03aefcff
13 changes: 9 additions & 4 deletions src/compilerSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,15 @@ export function getCompilerOptions(
configParseResult: typescript.ParsedCommandLine,
compiler: typeof typescript
) {
const compilerOptions = Object.assign({}, configParseResult.options, {
skipLibCheck: true,
suppressOutputPathCheck: true, // This is why: https://github.com/Microsoft/TypeScript/issues/7363
} as typescript.CompilerOptions);
const defaultOptions = { skipLibCheck: true };

const compilerOptions = Object.assign(
defaultOptions,
configParseResult.options,
{
suppressOutputPathCheck: true, // This is why: https://github.com/Microsoft/TypeScript/issues/7363
} as typescript.CompilerOptions
);

// if `module` is not specified and not using ES6+ target, default to CJS module output
if (
Expand Down