Skip to content

Add declarationDir to excludeSpec - #24056

Merged
Mohamed Hegazy (mhegazy) merged 2 commits into
microsoft:masterfrom
a-tarasyuk:bug/23891-declarationDir-needs-to-be-handled-in-excludeSpecs
May 11, 2018
Merged

Add declarationDir to excludeSpec#24056
Mohamed Hegazy (mhegazy) merged 2 commits into
microsoft:masterfrom
a-tarasyuk:bug/23891-declarationDir-needs-to-be-handled-in-excludeSpecs

Conversation

@a-tarasyuk

Copy link
Copy Markdown
Contributor

Fixes#23891

@mhegazy

Copy link
Copy Markdown
Contributor

Comment threadsrc/compiler/commandLineParser.ts Outdated
else if (raw.compilerOptions) {
const outDir = raw.compilerOptions.outDir;
const declarationDir = raw.compilerOptions.declarationDir;
const excludeDirs = [outDir, declarationDir].filter(dir => dir);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit. i would write this as:

if(outDir||declarationDir){excludeSpecs=[outDir,declarationDir].filter(d=>!!d);}

@a-tarasyuk

Copy link
Copy Markdown
ContributorAuthor

@mhegazy
Mohamed Hegazy (mhegazy) merged commit b0c67fd into microsoft:masterMay 11, 2018
@mhegazy

Copy link
Copy Markdown
Contributor

thanks!

@microsoftMicrosoft (microsoft) locked and limited conversation to collaborators Jul 31, 2018
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@a-tarasyuk@mhegazy