mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-18 07:29:16 -05:00
Explicitly add dependency on node to compiler tsconfig, remove es6+ string method usage (#39636)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
{
|
||||
"extends": "../tsconfig-base",
|
||||
"compilerOptions": {
|
||||
"outFile": "../../built/local/compiler.js"
|
||||
"outFile": "../../built/local/compiler.js",
|
||||
"types": ["node"]
|
||||
},
|
||||
|
||||
"references": [
|
||||
|
||||
Reference in New Issue
Block a user