mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Exclude outDir and declarationDir even if they come from extended config (#58335)
This commit is contained in:
@@ -2976,12 +2976,12 @@ function parseJsonConfigFileContentWorker(
|
||||
const excludeOfRaw = getSpecsFromRaw("exclude");
|
||||
let isDefaultIncludeSpec = false;
|
||||
let excludeSpecs = toPropValue(excludeOfRaw);
|
||||
if (excludeOfRaw === "no-prop" && raw.compilerOptions) {
|
||||
const outDir = raw.compilerOptions.outDir;
|
||||
const declarationDir = raw.compilerOptions.declarationDir;
|
||||
if (excludeOfRaw === "no-prop") {
|
||||
const outDir = options.outDir;
|
||||
const declarationDir = options.declarationDir;
|
||||
|
||||
if (outDir || declarationDir) {
|
||||
excludeSpecs = [outDir, declarationDir].filter(d => !!d);
|
||||
excludeSpecs = filter([outDir, declarationDir], d => !!d) as string[];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user