Skip to content

Commit

Permalink
Removed declarationDir and composite from compiler options
Browse files Browse the repository at this point in the history
`declarationDir` can be easily dropped without any issue, but `composite` isn't supported right now, see #93

Fixes #147
  • Loading branch information
timocov committed Feb 11, 2021
1 parent 1e51db5 commit 5c7771e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/compile-dts.ts
Expand Up @@ -21,6 +21,12 @@ export function compileDts(rootFiles: ReadonlyArray<string>, preferredConfigPath
compilerOptions.outDir = undefined;
compilerOptions.incremental = undefined;
compilerOptions.tsBuildInfoFile = undefined;
compilerOptions.declarationDir = undefined;

if (compilerOptions.composite) {
warnLog(`Composite projects aren't supported at the time. Prefer to use non-composite project to generate declarations instead or just ignore this message if everything works fine. See https://github.com/timocov/dts-bundle-generator/issues/93`);
compilerOptions.composite = undefined;
}

const dtsFiles = getDeclarationFiles(rootFiles, compilerOptions);

Expand Down

0 comments on commit 5c7771e

Please sign in to comment.