diff --git a/src/compiler/program.ts b/src/compiler/program.ts index c8761555d12..ba21461e2a0 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -18,8 +18,6 @@ namespace ts { "node_modules/@types/", ]; - const autoImportedTypePaths = ["types", "node_modules/@types"]; - export const version = "1.9.0"; export function findConfigFile(searchPath: string, fileExists: (fileName: string) => boolean): string { @@ -878,8 +876,8 @@ namespace ts { } function getDefaultTypeDirectiveNames(rootPath: string): string[] { - const localTypes = combinePaths(rootPath, 'types'); - const npmTypes = combinePaths(rootPath, 'node_modules/@types'); + const localTypes = combinePaths(rootPath, "types"); + const npmTypes = combinePaths(rootPath, "node_modules/@types"); let result: string[] = []; if (sys.directoryExists(localTypes)) { result = result.concat(sys.getDirectories(localTypes)); @@ -1029,7 +1027,7 @@ namespace ts { else { // or load all types from the automatic type import fields if (host.getDefaultTypeDirectiveNames) { - typeReferences = host.getDefaultTypeDirectiveNames(getCommonSourceDirectory());; + typeReferences = host.getDefaultTypeDirectiveNames(getCommonSourceDirectory()); } } diff --git a/src/harness/harness.ts b/src/harness/harness.ts index ca8102b2ff4..92482386138 100644 --- a/src/harness/harness.ts +++ b/src/harness/harness.ts @@ -905,7 +905,7 @@ namespace Harness { fileMap.forEachValue((key, value) => { const rx = /node_modules\/@types\/(\w+)/; const typeNameResult = rx.exec(key); - if(typeNameResult) { + if (typeNameResult) { const typeName = typeNameResult[1]; if (results.indexOf(typeName) < 0) { results.push(typeName);