mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Explicitly add dependency on node to compiler tsconfig, remove es6+ string method usage (#39636)
This commit is contained in:
parent
5519027600
commit
191f4f63ab
@ -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": [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user