Skip to content

Conversation

@a-tarasyuk
Copy link
Contributor

Fixes #23891

@mhegazy
Copy link
Contributor

mhegazy commented May 11, 2018

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

else if (raw.compilerOptions) {
const outDir = raw.compilerOptions.outDir;
const declarationDir = raw.compilerOptions.declarationDir;
const excludeDirs = [outDir, declarationDir].filter(dir => dir);
Copy link
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
Contributor Author

@mhegazy ok

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

mhegazy commented May 11, 2018

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