Explicitly add dependency on node to compiler tsconfig, remove es6+ string method usage (#39636)

This commit is contained in:
Wesley Wigham 2020-07-17 07:02:05 -07:00 committed by GitHub
parent 5519027600
commit 191f4f63ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -746,7 +746,7 @@ namespace ts {
for (const containingFilePath of Debug.assertDefined(resolution.files)) {
(filesWithInvalidatedResolutions || (filesWithInvalidatedResolutions = new Set())).add(containingFilePath);
// When its a file with inferred types resolution, invalidate type reference directive resolution
hasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames || containingFilePath.endsWith(inferredTypesContainingFile);
hasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames || endsWith(containingFilePath, inferredTypesContainingFile);
}
}
return invalidated;

View File

@ -1,7 +1,8 @@
{
"extends": "../tsconfig-base",
"compilerOptions": {
"outFile": "../../built/local/compiler.js"
"outFile": "../../built/local/compiler.js",
"types": ["node"]
},
"references": [