Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add declarationDir to excludeSpec#24056

Merged
mhegazy merged 2 commits into
microsoft:mastermicrosoft/TypeScript:masterfrom
a-tarasyuk:bug/23891-declarationDir-needs-to-be-handled-in-excludeSpecsa-tarasyuk/TypeScript:bug/23891-declarationDir-needs-to-be-handled-in-excludeSpecsCopy head branch name to clipboard
May 11, 2018
Merged

Add declarationDir to excludeSpec#24056
mhegazy merged 2 commits into
microsoft:mastermicrosoft/TypeScript:masterfrom
a-tarasyuk:bug/23891-declarationDir-needs-to-be-handled-in-excludeSpecsa-tarasyuk/TypeScript:bug/23891-declarationDir-needs-to-be-handled-in-excludeSpecsCopy head branch name to clipboard

Conversation

@a-tarasyuk

Copy link
Copy Markdown
Contributor

Fixes #23891

@mhegazy

mhegazy commented May 11, 2018

Copy link
Copy Markdown
Contributor

thanks @a-tarasyuk, can you also add a test for it. tests are in https://github.com/Microsoft/TypeScript/blob/master/src/harness/unittests/tsconfigParsing.ts

Comment thread src/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
Contributor Author

@mhegazy ok

@mhegazy mhegazy merged commit b0c67fd into microsoft:master May 11, 2018
@mhegazy

mhegazy commented May 11, 2018

Copy link
Copy Markdown
Contributor

thanks!

@microsoft microsoft locked and limited conversation to collaborators Jul 31, 2018
Sign up for free to 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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.