diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index 518d7a2a1f3..338200b5d1a 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -673,7 +673,7 @@ namespace ts { const knownProperties = ["compilerOptions", "typingOptions", "files", "exclude"]; for (const prop in json) { - if (knownProperties.indexOf(prop) >= 0) { + if (ts.indexOf(knownProperties, prop) >= 0) { continue; }